COLOR #402F42

HEX: #402F42
RGB: (64,47,66)

Color info

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

RGB color model

#402F42 color RGB value is (64,47,66).

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

RGB channels and saturation

R 64 of 255 = 25%
G 47 of 255 = 18%
B 66 of 255 = 26%

64
47
66

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

Portions of RGB colors in percentages

R + G + B =
64 + 47 + 66 = 177 (100%)
R 64 of 177 ~ 36.16%
G 47 of 177 ~ 26.55%
B 66 of 177 ~ 37.29%

%36.16
%26.55
%37.29

CMYK color model

#402F42 color CMYK value is (3,29,0,74).

  • cyan value is 3.03%
  • magenta value is 28.79%
  • yellow value is 0.00%
  • key color value is 74.12%
CMYK:
(3,29,0,74)
C3M29Y0K74 
(3%,29%,0%,74%)
(0.03/0.29/0.00/0.74)	

CMYK percentages

%3.03
%28.79
%0
%74.12

Codes

Color #402F42 in popluar color models

402F42
RGB644766
HSL294°16.81%22.16%
HSB/HSV294°28.79%25.88%
CMYK3.03%28.79%0.00%
74.12%

Color #402F42 in popluar number systems.

HEX402F42
Decimal644766
Binary10000001011111000010
Octal10057102

Shades and tints

Shades of #402F42

#402F42
(64,47,66)
#3B2B3C
(59,43,60)
#362736
(54,39,54)
#312330
(49,35,48)
#2C1F2A
(44,31,42)
#271B24
(39,27,36)
#22171E
(34,23,30)
#1D1318
(29,19,24)
#180F12
(24,15,18)
#130B0C
(19,11,12)
#0E0706
(14,7,6)
#000000
(0,0,0)

Tints of #402F42

#402F42
(64,47,66)
#514153
(81,65,83)
#625364
(98,83,100)
#736575
(115,101,117)
#847786
(132,119,134)
#958997
(149,137,151)
#A69BA8
(166,155,168)
#B7ADB9
(183,173,185)
#C8BFCA
(200,191,202)
#D9D1DB
(217,209,219)
#EAE3EC
(234,227,236)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #402F42; }

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

This text font color is #402F42.


Background Color

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

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

This div background color is #402F42.


Border color

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

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

This div border color is #402F42.


Opacity

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

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

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

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

This text has shadow with #402F42 color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #402F42 on black background.


Color preview on white background

This text has color #402F42 on white background.



Black color preview on #402F42 background

This text has black color on #402F42 background.


White color preview on #402F42 background

This text has white color on #402F42 background.