COLOR #040F04

HEX: #040F04
RGB: (4,15,4)

Color info

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

RGB color model

#040F04 color RGB value is (4,15,4).

  • red value is 4;
  • green value is 15;
  • blue value is 4.
RGB:
(4,15,4)
(2%,6%,2%)

RGB channels and saturation

R 4 of 255 = 2%
G 15 of 255 = 6%
B 4 of 255 = 2%

4
15
4

R + G + B ~ 3%. #040F04 is dark color.

Portions of RGB colors in percentages

R + G + B =
4 + 15 + 4 = 23 (100%)
R 4 of 23 ~ 17.39%
G 15 of 23 ~ 65.22%
B 4 of 23 ~ 17.39%

%17.39
%65.22
%17.39

CMYK color model

#040F04 color CMYK value is (73,0,73,94).

  • cyan value is 73.33%
  • magenta value is 0.00%
  • yellow value is 73.33%
  • key color value is 94.12%
CMYK:
(73,0,73,94)
C73M0Y73K94 
(73%,0%,73%,94%)
(0.73/0.00/0.73/0.94)	

CMYK percentages

%73.33
%0
%73.33
%94.12

Codes

Color #040F04 in popluar color models

040F04
RGB4154
HSL120°57.89%3.73%
HSB/HSV120°73.33%5.88%
CMYK73.33%0.00%73.33%
94.12%

Color #040F04 in popluar number systems.

HEX040F04
Decimal4154
Binary1001111100
Octal4174

Shades and tints

Shades of #040F04

#040F04
(4,15,4)
#040E04
(4,14,4)
#040D04
(4,13,4)
#040C04
(4,12,4)
#040B04
(4,11,4)
#040A04
(4,10,4)
#040904
(4,9,4)
#040804
(4,8,4)
#040704
(4,7,4)
#040604
(4,6,4)
#040504
(4,5,4)
#000000
(0,0,0)

Tints of #040F04

#040F04
(4,15,4)
#1A241A
(26,36,26)
#303930
(48,57,48)
#464E46
(70,78,70)
#5C635C
(92,99,92)
#727872
(114,120,114)
#888D88
(136,141,136)
#9EA29E
(158,162,158)
#B4B7B4
(180,183,180)
#CACCCA
(202,204,202)
#E0E1E0
(224,225,224)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #040F04; }

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

This text font color is #040F04.


Background Color

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

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

This div background color is #040F04.


Border color

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

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

This div border color is #040F04.


Opacity

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

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

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

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

This text has shadow with #040F04 color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #040F04 on black background.


Color preview on white background

This text has color #040F04 on white background.



Black color preview on #040F04 background

This text has black color on #040F04 background.


White color preview on #040F04 background

This text has white color on #040F04 background.