COLOR #040C1F

HEX: #040C1F
RGB: (4,12,31)

Color info

#040C1F contains red, green and blue colors in about the same proportion. Web safe color of #040C1F is #000033 (or #003).

RGB color model

#040C1F color RGB value is (4,12,31).

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

RGB channels and saturation

R 4 of 255 = 2%
G 12 of 255 = 5%
B 31 of 255 = 12%

4
12
31

R + G + B ~ 6%. #040C1F is dark color.

Portions of RGB colors in percentages

R + G + B =
4 + 12 + 31 = 47 (100%)
R 4 of 47 ~ 8.51%
G 12 of 47 ~ 25.53%
B 31 of 47 ~ 65.96%

%25.53
%65.96

CMYK color model

#040C1F color CMYK value is (87,61,0,88).

  • cyan value is 87.10%
  • magenta value is 61.29%
  • yellow value is 0.00%
  • key color value is 87.84%
CMYK:
(87,61,0,88)
C87M61Y0K88 
(87%,61%,0%,88%)
(0.87/0.61/0.00/0.88)	

CMYK percentages

%87.1
%61.29
%0
%87.84

Codes

Color #040C1F in popluar color models

040C1F
RGB41231
HSL222°77.14%6.86%
HSB/HSV222°87.10%12.16%
CMYK87.10%61.29%0.00%
87.84%

Color #040C1F in popluar number systems.

HEX040C1F
Decimal41231
Binary100110011111
Octal41437

Shades and tints

Shades of #040C1F

#040C1F
(4,12,31)
#040B1D
(4,11,29)
#040A1B
(4,10,27)
#040919
(4,9,25)
#040817
(4,8,23)
#040715
(4,7,21)
#040613
(4,6,19)
#040511
(4,5,17)
#04040F
(4,4,15)
#04030D
(4,3,13)
#04020B
(4,2,11)
#000000
(0,0,0)

Tints of #040C1F

#040C1F
(4,12,31)
#1A2233
(26,34,51)
#303847
(48,56,71)
#464E5B
(70,78,91)
#5C646F
(92,100,111)
#727A83
(114,122,131)
#889097
(136,144,151)
#9EA6AB
(158,166,171)
#B4BCBF
(180,188,191)
#CAD2D3
(202,210,211)
#E0E8E7
(224,232,231)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #040C1F; }

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

This text font color is #040C1F.


Background Color

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

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

This div background color is #040C1F.


Border color

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

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

This div border color is #040C1F.


Opacity

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

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

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

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

This text has shadow with #040C1F color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #040C1F on black background.


Color preview on white background

This text has color #040C1F on white background.



Black color preview on #040C1F background

This text has black color on #040C1F background.


White color preview on #040C1F background

This text has white color on #040C1F background.