COLOR #402142

HEX: #402142 RGB: (64,33,66)

Color info

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

RGB color model

#402142 color RGB value is (64,33,66).

RGB: (64,33,66) (25%, 13%, 26%)

RGB channels and saturation

R 64 of 255 = 25%
G 33 of 255 = 13%
B 66 of 255 = 26%

64
33
66

R + G + B ~ 21%. #402142 is dark color.

Portions of RGB colors in percentages

R + G + B = 64 + 33 + 66 = 163 (100%)
R 64 of 163 ~ 39.26%
G 33 of 163 ~ 20.25%
B 66 of 163 ~ 40.49'%

%39.26
%20.25
%40.49

CMYK color model

#402142 color CMYK value is (3,50,0,74).

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

CMYK: (3,50,0,74)
C3M50Y0K74 (3%, 50%, 0%, 74%)
(0.03 / 0.50 / 0.00 / 0.74)

CMYK percentages

%3.03
%50
%0
%74.12

Codes

Color #402142 in popluar color models

40 21 42
RGB 64 33 66
HSL 296° 33.33% 19.41%
HSB/HSV 296° 50.00% 25.88%
CMYK 3.03% 50.00% 0.00%
74.12%

Color #402142 in popluar number systems.

HEX 40 21 42
Decimal 64 33 66
Binary 1000000 100001 1000010
Octal 100 41 102

Shades and tints

Shades of #402142

#402142
(64,33,66)
#3B1E3C
(59,30,60)
#361B36
(54,27,54)
#311830
(49,24,48)
#2C152A
(44,21,42)
#271224
(39,18,36)
#220F1E
(34,15,30)
#1D0C18
(29,12,24)
#180912
(24,9,18)
#13060C
(19,6,12)
#0E0306
(14,3,6)
#000000
(0,0,0)

Tints of #402142

#402142
(64,33,66)
#513553
(81,53,83)
#624964
(98,73,100)
#735D75
(115,93,117)
#847186
(132,113,134)
#958597
(149,133,151)
#A699A8
(166,153,168)
#B7ADB9
(183,173,185)
#C8C1CA
(200,193,202)
#D9D5DB
(217,213,219)
#EAE9EC
(234,233,236)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #402142; }

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

This text font color is #402142.

Background Color

.myBgColor { background-color: #402142; }

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

This div background color is #402142.

Border color

.myBorderColor { border: 1px solid #402142; }

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

This div border color is #402142.

Opacity

.myOpacity80 { color: #402142; opacity: 0.8; }

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

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

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

This text has shadow with #402142 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #402142.

Preview

Color preview on black background

This text has color #402142 on black background.


Color preview on white background

This text has color #402142 on white background.


Black color preview on #402142 background

This text has black color on #402142 background.


White color preview on #402142 background

This text has white color on #402142 background.


Related colors

Complementary color

Complementary color for #hex is #BFDEBD.


I love getcolorcode.com

Triadic colors

1 #424021 and #214240 with #402142 are triadic colors.

2 #422140 and #214042 with #402142 are triadic colors.