COLOR #040C16

HEX: #040C16
RGB: (4,12,22)

Color info

#040C16 contains red, green and blue colors in about the same proportion. Web safe color of #040C16 is #000000 (or #000).

RGB color model

#040C16 color RGB value is (4,12,22).

  • red value is 4;
  • green value is 12;
  • blue value is 22.
RGB:
(4,12,22)
(2%,5%,9%)

RGB channels and saturation

R 4 of 255 = 2%
G 12 of 255 = 5%
B 22 of 255 = 9%

4
12
22

R + G + B ~ 5%. #040C16 is dark color.

Portions of RGB colors in percentages

R + G + B =
4 + 12 + 22 = 38 (100%)
R 4 of 38 ~ 10.53%
G 12 of 38 ~ 31.58%
B 22 of 38 ~ 57.89%

%10.53
%31.58
%57.89

CMYK color model

#040C16 color CMYK value is (82,45,0,91).

  • cyan value is 81.82%
  • magenta value is 45.45%
  • yellow value is 0.00%
  • key color value is 91.37%
CMYK:
(82,45,0,91)
C82M45Y0K91 
(82%,45%,0%,91%)
(0.82/0.45/0.00/0.91)	

CMYK percentages

%81.82
%45.45
%0
%91.37

Codes

Color #040C16 in popluar color models

040C16
RGB41222
HSL213°69.23%5.10%
HSB/HSV213°81.82%8.63%
CMYK81.82%45.45%0.00%
91.37%

Color #040C16 in popluar number systems.

HEX040C16
Decimal41222
Binary100110010110
Octal41426

Shades and tints

Shades of #040C16

#040C16
(4,12,22)
#040B14
(4,11,20)
#040A12
(4,10,18)
#040910
(4,9,16)
#04080E
(4,8,14)
#04070C
(4,7,12)
#04060A
(4,6,10)
#040508
(4,5,8)
#040406
(4,4,6)
#040304
(4,3,4)
#040202
(4,2,2)
#000000
(0,0,0)

Tints of #040C16

#040C16
(4,12,22)
#1A222B
(26,34,43)
#303840
(48,56,64)
#464E55
(70,78,85)
#5C646A
(92,100,106)
#727A7F
(114,122,127)
#889094
(136,144,148)
#9EA6A9
(158,166,169)
#B4BCBE
(180,188,190)
#CAD2D3
(202,210,211)
#E0E8E8
(224,232,232)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #040C16 color. Also use rgb(4,12,22) instead hex code.

Text Font Color

.myTextColor { color: #040C16; }

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

This text font color is #040C16.


Background Color

.myBgColor { background-color: #040C16; }

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

This div background color is #040C16.


Border color

.myBorderColor { border: 1px solid #040C16; }

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

This div border color is #040C16.


Opacity

.myOpacity80 { color: #040C16; opacity: 0.8; }

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

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

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

This text has shadow with #040C16 color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #040C16 on black background.


Color preview on white background

This text has color #040C16 on white background.



Black color preview on #040C16 background

This text has black color on #040C16 background.


White color preview on #040C16 background

This text has white color on #040C16 background.