COLOR #402F4E

HEX: #402F4E RGB: (64,47,78)

Color info

#402F4E contains red, green and blue colors in about the same proportion. Web safe color of #402F4E is #333366 (or #336).

RGB color model

#402F4E color RGB value is (64,47,78).

RGB: (64,47,78) (25%, 18%, 31%)

RGB channels and saturation

R 64 of 255 = 25%
G 47 of 255 = 18%
B 78 of 255 = 31%

64
47
78

R + G + B ~ 25%. #402F4E is quite dark color.

Portions of RGB colors in percentages

R + G + B = 64 + 47 + 78 = 189 (100%)
R 64 of 189 ~ 33.86%
G 47 of 189 ~ 24.87%
B 78 of 189 ~ 41.27'%

%33.86
%24.87
%41.27

CMYK color model

#402F4E color CMYK value is (18,40,0,69).

  • cyan value is 17.95%
  • magenta value is 39.74%
  • yellow value is 0.00%
  • key color value is 69.41%
CMYK: (18,40,0,69) C18M40Y0K69 (18%,40%,0%,69%) (0.18/0.40/0.00/0.69) 

CMYK percentages

%17.95
%39.74
%0
%69.41

Codes

Color #402F4E in popluar color models

40 2F 4E
RGB 64 47 78
HSL 273° 24.80% 24.51%
HSB/HSV 273° 39.74% 30.59%
CMYK 17.95% 39.74% 0.00%
69.41%

Color #402F4E in popluar number systems.

HEX 40 2F 4E
Decimal 64 47 78
Binary 1000000 101111 1001110
Octal 100 57 116

Shades and tints

Shades of #402F4E

#402F4E
(64,47,78)
#3B2B47
(59,43,71)
#362740
(54,39,64)
#312339
(49,35,57)
#2C1F32
(44,31,50)
#271B2B
(39,27,43)
#221724
(34,23,36)
#1D131D
(29,19,29)
#180F16
(24,15,22)
#130B0F
(19,11,15)
#0E0708
(14,7,8)
#000000
(0,0,0)

Tints of #402F4E

#402F4E
(64,47,78)
#51415E
(81,65,94)
#62536E
(98,83,110)
#73657E
(115,101,126)
#84778E
(132,119,142)
#95899E
(149,137,158)
#A69BAE
(166,155,174)
#B7ADBE
(183,173,190)
#C8BFCE
(200,191,206)
#D9D1DE
(217,209,222)
#EAE3EE
(234,227,238)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #402F4E color. Also use rgb(64,47,78) instead hex code.

Text Font Color

.myTextColor { color: #402F4E; }

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

This text font color is #402F4E.

Background Color

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

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

This div background color is #402F4E.

Border color

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

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

This div border color is #402F4E.

Opacity

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

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

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

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

This text has shadow with #402F4E color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #402F4E.

Preview

Color preview on black background

This text has color #402F4E on black background.


Color preview on white background

This text has color #402F4E on white background.


Black color preview on #402F4E background

This text has black color on #402F4E background.


White color preview on #402F4E background

This text has white color on #402F4E background.


Related colors

Complementary color

Complementary color for #hex is #BFD0B1.


I love getcolorcode.com

Triadic colors

1 #4E402F and #2F4E40 with #402F4E are triadic colors.

2 #4E2F40 and #2F404E with #402F4E are triadic colors.