COLOR #402C42

HEX: #402C42 RGB: (64,44,66)

Color info

#402C42 contains red, green and blue colors in about the same proportion. Web safe color of #402C42 is #333333 (or #333).

RGB color model

#402C42 color RGB value is (64,44,66).

RGB: (64,44,66) (25%, 17%, 26%)

RGB channels and saturation

R 64 of 255 = 25%
G 44 of 255 = 17%
B 66 of 255 = 26%

64
44
66

R + G + B ~ 23%. #402C42 is dark color.

Portions of RGB colors in percentages

R + G + B = 64 + 44 + 66 = 174 (100%)
R 64 of 174 ~ 36.78%
G 44 of 174 ~ 25.29%
B 66 of 174 ~ 37.93'%

%36.78
%25.29
%37.93

CMYK color model

#402C42 color CMYK value is (3,33,0,74).

  • cyan value is 3.03%
  • magenta value is 33.33%
  • yellow value is 0.00%
  • key color value is 74.12%

CMYK: (3,33,0,74)
C3M33Y0K74 (3%, 33%, 0%, 74%)
(0.03 / 0.33 / 0.00 / 0.74)

CMYK percentages

%3.03
%33.33
%0
%74.12

Codes

Color #402C42 in popluar color models

40 2C 42
RGB 64 44 66
HSL 295° 20.00% 21.57%
HSB/HSV 295° 33.33% 25.88%
CMYK 3.03% 33.33% 0.00%
74.12%

Color #402C42 in popluar number systems.

HEX 40 2C 42
Decimal 64 44 66
Binary 1000000 101100 1000010
Octal 100 54 102

Shades and tints

Shades of #402C42

#402C42
(64,44,66)
#3B283C
(59,40,60)
#362436
(54,36,54)
#312030
(49,32,48)
#2C1C2A
(44,28,42)
#271824
(39,24,36)
#22141E
(34,20,30)
#1D1018
(29,16,24)
#180C12
(24,12,18)
#13080C
(19,8,12)
#0E0406
(14,4,6)
#000000
(0,0,0)

Tints of #402C42

#402C42
(64,44,66)
#513F53
(81,63,83)
#625264
(98,82,100)
#736575
(115,101,117)
#847886
(132,120,134)
#958B97
(149,139,151)
#A69EA8
(166,158,168)
#B7B1B9
(183,177,185)
#C8C4CA
(200,196,202)
#D9D7DB
(217,215,219)
#EAEAEC
(234,234,236)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #402C42; }

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

This text font color is #402C42.

Background Color

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

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

This div background color is #402C42.

Border color

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

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

This div border color is #402C42.

Opacity

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

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

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

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

This text has shadow with #402C42 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #402C42.

Preview

Color preview on black background

This text has color #402C42 on black background.


Color preview on white background

This text has color #402C42 on white background.


Black color preview on #402C42 background

This text has black color on #402C42 background.


White color preview on #402C42 background

This text has white color on #402C42 background.


Related colors

Complementary color

Complementary color for #hex is #BFD3BD.


I love getcolorcode.com

Triadic colors

1 #42402C and #2C4240 with #402C42 are triadic colors.

2 #422C40 and #2C4042 with #402C42 are triadic colors.