COLOR #402B72

HEX: #402B72 RGB: (64,43,114)

Color info

#402B72 contains mainly red and blue colors. Web safe color of #402B72 is #333366 (or #336).

RGB color model

#402B72 color RGB value is (64,43,114).

RGB: (64,43,114) (25%, 17%, 45%)

RGB channels and saturation

R 64 of 255 = 25%
G 43 of 255 = 17%
B 114 of 255 = 45%

64
43
114

R + G + B ~ 29%. #402B72 is quite dark color.

Portions of RGB colors in percentages

R + G + B = 64 + 43 + 114 = 221 (100%)
R 64 of 221 ~ 28.96%
G 43 of 221 ~ 19.46%
B 114 of 221 ~ 51.58'%

%28.96
%19.46
%51.58

CMYK color model

#402B72 color CMYK value is (44,62,0,55).

  • cyan value is 43.86%
  • magenta value is 62.28%
  • yellow value is 0.00%
  • key color value is 55.29%
CMYK: (44,62,0,55) C44M62Y0K55 (44%,62%,0%,55%) (0.44/0.62/0.00/0.55) 

CMYK percentages

%43.86
%62.28
%0
%55.29

Codes

Color #402B72 in popluar color models

40 2B 72
RGB 64 43 114
HSL 258° 45.22% 30.78%
HSB/HSV 258° 62.28% 44.71%
CMYK 43.86% 62.28% 0.00%
55.29%

Color #402B72 in popluar number systems.

HEX 40 2B 72
Decimal 64 43 114
Binary 1000000 101011 1110010
Octal 100 53 162

Shades and tints

Shades of #402B72

#402B72
(64,43,114)
#3B2868
(59,40,104)
#36255E
(54,37,94)
#312254
(49,34,84)
#2C1F4A
(44,31,74)
#271C40
(39,28,64)
#221936
(34,25,54)
#1D162C
(29,22,44)
#181322
(24,19,34)
#131018
(19,16,24)
#0E0D0E
(14,13,14)
#000000
(0,0,0)

Tints of #402B72

#402B72
(64,43,114)
#513E7E
(81,62,126)
#62518A
(98,81,138)
#736496
(115,100,150)
#8477A2
(132,119,162)
#958AAE
(149,138,174)
#A69DBA
(166,157,186)
#B7B0C6
(183,176,198)
#C8C3D2
(200,195,210)
#D9D6DE
(217,214,222)
#EAE9EA
(234,233,234)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #402B72 color. Also use rgb(64,43,114) instead hex code.

Text Font Color

.myTextColor { color: #402B72; }

<p style="color:#402B72">This sample text font color is #402B72.</p>

This text font color is #402B72.

Background Color

.myBgColor { background-color: #402B72; }

<div style="background-color:#402B72">Inner text</div>

This div background color is #402B72.

Border color

.myBorderColor { border: 1px solid #402B72; }

<div style="border:3px solid #402B72">Div</div>

This div border color is #402B72.

Opacity

.myOpacity80 { color: #402B72; opacity: 0.8; }

<p style="color:#402B72;opacity:0.8;">80%</p>

Text with #402B72 color and opacity 100% | 80% | 50% | 30%.

Background with opacity value 100%.
Background with opacity value 80%.
Background with opacity value 50%.
Background with opacity value 30%.

Text shadow color

.textShadow {text-shadow: 3px 3px 1px #402B72;}

<p style="text-shadow: 3px 3px 1px #402B72">Text here.</p>

This text has shadow with #402B72 color.


.textShadow {text-shadow: 3px 3px 1px #402B72', 3px 3px 1px red;}

<p style="text-shadow: 3px 3px 1px #402B72, 5px 5px 20px red">Text here.</p>

This text has shadow with #402B72 primary color and red secondary color.


Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#402B72, Direction=45, Strength=4)}

<p style="filter: Shadow(Color=#402B72, Direction=45, Strength=4)">Text</p>

This text has shadow with #402B72 and red colors in old Internet Explorer.

Div box shadow color

/* css code */
.divShadow
{
-moz-box-shadow: 1px 1px 3px 2px #402B72;
-webkit-box-shadow: 1px 1px 3px 2px #402B72;
box-shadow: 1px 1px 3px 2px #402B72;
}

/* html code with inline style */
<div style="-moz-box-shadow: 1px 1px 3px 2px #402B72; -webkit-box-shadow: 1px 1px 3px 2px #402B72; box-shadow:1px 1px 3px 2px #402B72;">
Div content here
</div>

This div box has shadow with color #402B72.

Preview

Color preview on black background

This text has color #402B72 on black background.


Color preview on white background

This text has color #402B72 on white background.


Black color preview on #402B72 background

This text has black color on #402B72 background.


White color preview on #402B72 background

This text has white color on #402B72 background.


Related colors

Complementary color

Complementary color for #hex is #BFD48D.


I love getcolorcode.com

Triadic colors

1 #72402B and #2B7240 with #402B72 are triadic colors.

2 #722B40 and #2B4072 with #402B72 are triadic colors.