COLOR #402C68

HEX: #402C68 RGB: (64,44,104)

Color info

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

RGB color model

#402C68 color RGB value is (64,44,104).

RGB: (64,44,104) (25%, 17%, 41%)

RGB channels and saturation

R 64 of 255 = 25%
G 44 of 255 = 17%
B 104 of 255 = 41%

64
44
104

R + G + B ~ 28%. #402C68 is quite dark color.

Portions of RGB colors in percentages

R + G + B = 64 + 44 + 104 = 212 (100%)
R 64 of 212 ~ 30.19%
G 44 of 212 ~ 20.75%
B 104 of 212 ~ 49.06'%

%30.19
%20.75
%49.06

CMYK color model

#402C68 color CMYK value is (38,58,0,59).

  • cyan value is 38.46%
  • magenta value is 57.69%
  • yellow value is 0.00%
  • key color value is 59.22%
CMYK: (38,58,0,59) C38M58Y0K59 (38%,58%,0%,59%) (0.38/0.58/0.00/0.59) 

CMYK percentages

%38.46
%57.69
%0
%59.22

Codes

Color #402C68 in popluar color models

40 2C 68
RGB 64 44 104
HSL 260° 40.54% 29.02%
HSB/HSV 260° 57.69% 40.78%
CMYK 38.46% 57.69% 0.00%
59.22%

Color #402C68 in popluar number systems.

HEX 40 2C 68
Decimal 64 44 104
Binary 1000000 101100 1101000
Octal 100 54 150

Shades and tints

Shades of #402C68

#402C68
(64,44,104)
#3B285F
(59,40,95)
#362456
(54,36,86)
#31204D
(49,32,77)
#2C1C44
(44,28,68)
#27183B
(39,24,59)
#221432
(34,20,50)
#1D1029
(29,16,41)
#180C20
(24,12,32)
#130817
(19,8,23)
#0E040E
(14,4,14)
#000000
(0,0,0)

Tints of #402C68

#402C68
(64,44,104)
#513F75
(81,63,117)
#625282
(98,82,130)
#73658F
(115,101,143)
#84789C
(132,120,156)
#958BA9
(149,139,169)
#A69EB6
(166,158,182)
#B7B1C3
(183,177,195)
#C8C4D0
(200,196,208)
#D9D7DD
(217,215,221)
#EAEAEA
(234,234,234)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #402C68 color. Also use rgb(64,44,104) instead hex code.

Text Font Color

.myTextColor { color: #402C68; }

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

This text font color is #402C68.

Background Color

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

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

This div background color is #402C68.

Border color

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

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

This div border color is #402C68.

Opacity

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

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

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

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

This text has shadow with #402C68 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #402C68.

Preview

Color preview on black background

This text has color #402C68 on black background.


Color preview on white background

This text has color #402C68 on white background.


Black color preview on #402C68 background

This text has black color on #402C68 background.


White color preview on #402C68 background

This text has white color on #402C68 background.


Related colors

Complementary color

Complementary color for #hex is #BFD397.


I love getcolorcode.com

Triadic colors

1 #68402C and #2C6840 with #402C68 are triadic colors.

2 #682C40 and #2C4068 with #402C68 are triadic colors.