COLOR #404242

HEX: #404242
RGB: (64,66,66)

Color info

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

RGB color model

#404242 color RGB value is (64,66,66).

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

RGB channels and saturation

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

64
66
66

R + G + B ~ 26%. #404242 is quite dark color.

Portions of RGB colors in percentages

R + G + B =
64 + 66 + 66 = 196 (100%)
R 64 of 196 ~ 32.65%
G 66 of 196 ~ 33.67%
B 66 of 196 ~ 33.67%

%32.65
%33.67
%33.67

CMYK color model

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

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

CMYK percentages

%3.03
%0
%0
%74.12

Codes

Color #404242 in popluar color models

404242
RGB646666
HSL180°1.54%25.49%
HSB/HSV180°3.03%25.88%
CMYK3.03%0.00%0.00%
74.12%

Color #404242 in popluar number systems.

HEX404242
Decimal646666
Binary100000010000101000010
Octal100102102

Shades and tints

Shades of #404242

#404242
(64,66,66)
#3B3C3C
(59,60,60)
#363636
(54,54,54)
#313030
(49,48,48)
#2C2A2A
(44,42,42)
#272424
(39,36,36)
#221E1E
(34,30,30)
#1D1818
(29,24,24)
#181212
(24,18,18)
#130C0C
(19,12,12)
#0E0606
(14,6,6)
#000000
(0,0,0)

Tints of #404242

#404242
(64,66,66)
#515353
(81,83,83)
#626464
(98,100,100)
#737575
(115,117,117)
#848686
(132,134,134)
#959797
(149,151,151)
#A6A8A8
(166,168,168)
#B7B9B9
(183,185,185)
#C8CACA
(200,202,202)
#D9DBDB
(217,219,219)
#EAECEC
(234,236,236)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #404242; }

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

This text font color is #404242.


Background Color

.myBgColor { background-color: #404242; }

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

This div background color is #404242.


Border color

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

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

This div border color is #404242.


Opacity

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

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

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

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

This text has shadow with #404242 color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #404242 on black background.


Color preview on white background

This text has color #404242 on white background.



Black color preview on #404242 background

This text has black color on #404242 background.


White color preview on #404242 background

This text has white color on #404242 background.