COLOR #402B77

HEX: #402B77 RGB: (64,43,119)

Color info

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

RGB color model

#402B77 color RGB value is (64,43,119).

RGB: (64,43,119) (25%, 17%, 47%)

RGB channels and saturation

R 64 of 255 = 25%
G 43 of 255 = 17%
B 119 of 255 = 47%

64
43
119

R + G + B ~ 30%. #402B77 is quite dark color.

Portions of RGB colors in percentages

R + G + B = 64 + 43 + 119 = 226 (100%)
R 64 of 226 ~ 28.32%
G 43 of 226 ~ 19.03%
B 119 of 226 ~ 52.65'%

%28.32
%19.03
%52.65

CMYK color model

#402B77 color CMYK value is (46,64,0,53).

  • cyan value is 46.22%
  • magenta value is 63.87%
  • yellow value is 0.00%
  • key color value is 53.33%
CMYK: (46,64,0,53) C46M64Y0K53 (46%,64%,0%,53%) (0.46/0.64/0.00/0.53) 

CMYK percentages

%46.22
%63.87
%0
%53.33

Codes

Color #402B77 in popluar color models

40 2B 77
RGB 64 43 119
HSL 257° 46.91% 31.76%
HSB/HSV 257° 63.87% 46.67%
CMYK 46.22% 63.87% 0.00%
53.33%

Color #402B77 in popluar number systems.

HEX 40 2B 77
Decimal 64 43 119
Binary 1000000 101011 1110111
Octal 100 53 167

Shades and tints

Shades of #402B77

#402B77
(64,43,119)
#3B286D
(59,40,109)
#362563
(54,37,99)
#312259
(49,34,89)
#2C1F4F
(44,31,79)
#271C45
(39,28,69)
#22193B
(34,25,59)
#1D1631
(29,22,49)
#181327
(24,19,39)
#13101D
(19,16,29)
#0E0D13
(14,13,19)
#000000
(0,0,0)

Tints of #402B77

#402B77
(64,43,119)
#513E83
(81,62,131)
#62518F
(98,81,143)
#73649B
(115,100,155)
#8477A7
(132,119,167)
#958AB3
(149,138,179)
#A69DBF
(166,157,191)
#B7B0CB
(183,176,203)
#C8C3D7
(200,195,215)
#D9D6E3
(217,214,227)
#EAE9EF
(234,233,239)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #402B77; }

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

This text font color is #402B77.

Background Color

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

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

This div background color is #402B77.

Border color

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

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

This div border color is #402B77.

Opacity

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

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

Text with #402B77 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 #402B77;}

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

This text has shadow with #402B77 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #402B77.

Preview

Color preview on black background

This text has color #402B77 on black background.


Color preview on white background

This text has color #402B77 on white background.


Black color preview on #402B77 background

This text has black color on #402B77 background.


White color preview on #402B77 background

This text has white color on #402B77 background.


Related colors

Complementary color

Complementary color for #hex is #BFD488.


I love getcolorcode.com

Triadic colors

1 #77402B and #2B7740 with #402B77 are triadic colors.

2 #772B40 and #2B4077 with #402B77 are triadic colors.