COLOR #402F4A

HEX: #402F4A
RGB: (64,47,74)

Color info

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

RGB color model

#402F4A color RGB value is (64,47,74).

  • red value is 64;
  • green value is 47;
  • blue value is 74.
RGB:
(64,47,74)
(25%,18%,29%)

RGB channels and saturation

R 64 of 255 = 25%
G 47 of 255 = 18%
B 74 of 255 = 29%

64
47
74

R + G + B ~ 24%. #402F4A is dark color.

Portions of RGB colors in percentages

R + G + B =
64 + 47 + 74 = 185 (100%)
R 64 of 185 ~ 34.59%
G 47 of 185 ~ 25.41%
B 74 of 185 ~ 40%

%34.59
%25.41
%40

CMYK color model

#402F4A color CMYK value is (14,36,0,71).

  • cyan value is 13.51%
  • magenta value is 36.49%
  • yellow value is 0.00%
  • key color value is 70.98%
CMYK:
(14,36,0,71)
C14M36Y0K71 
(14%,36%,0%,71%)
(0.14/0.36/0.00/0.71)	

CMYK percentages

%13.51
%36.49
%0
%70.98

Codes

Color #402F4A in popluar color models

402F4A
RGB644774
HSL278°22.31%23.73%
HSB/HSV278°36.49%29.02%
CMYK13.51%36.49%0.00%
70.98%

Color #402F4A in popluar number systems.

HEX402F4A
Decimal644774
Binary10000001011111001010
Octal10057112

Shades and tints

Shades of #402F4A

#402F4A
(64,47,74)
#3B2B44
(59,43,68)
#36273E
(54,39,62)
#312338
(49,35,56)
#2C1F32
(44,31,50)
#271B2C
(39,27,44)
#221726
(34,23,38)
#1D1320
(29,19,32)
#180F1A
(24,15,26)
#130B14
(19,11,20)
#0E070E
(14,7,14)
#000000
(0,0,0)

Tints of #402F4A

#402F4A
(64,47,74)
#51415A
(81,65,90)
#62536A
(98,83,106)
#73657A
(115,101,122)
#84778A
(132,119,138)
#95899A
(149,137,154)
#A69BAA
(166,155,170)
#B7ADBA
(183,173,186)
#C8BFCA
(200,191,202)
#D9D1DA
(217,209,218)
#EAE3EA
(234,227,234)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #402F4A; }

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

This text font color is #402F4A.


Background Color

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

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

This div background color is #402F4A.


Border color

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

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

This div border color is #402F4A.


Opacity

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

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

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

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

This text has shadow with #402F4A color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #402F4A on black background.


Color preview on white background

This text has color #402F4A on white background.



Black color preview on #402F4A background

This text has black color on #402F4A background.


White color preview on #402F4A background

This text has white color on #402F4A background.