HEX: #04120D
RGB: (4,18,13)
#04120D contains red, green and blue colors in about the same proportion. Web safe color of #04120D is #000000 (or #000).
#04120D color RGB value is (4,18,13).
RGB: (4,18,13) (2%,7%,5%)
R 4 of 255 = 2%
G 18 of 255 = 7%
B 13 of 255 = 5%
R + G + B ~ 5%. #04120D is dark color.
R + G + B =
4 + 18 + 13 = 35 (100%)
R 4 of 35 ~ 11.43%
G 18 of 35 ~ 51.43%
B 13 of 35 ~ 37.14%
#04120D color CMYK value is (78,0,28,93).
CMYK: (78,0,28,93) C78M0Y28K93 (78%,0%,28%,93%) (0.78/0.00/0.28/0.93)
04 | 12 | 0D | |
---|---|---|---|
RGB | 4 | 18 | 13 |
HSL | 159° | 63.64% | 4.31% |
HSB/HSV | 159° | 77.78% | 7.06% |
CMYK | 77.78% | 0.00% | 27.78% |
92.94% |
HEX | 04 | 12 | 0D |
Decimal | 4 | 18 | 13 |
Binary | 100 | 10010 | 1101 |
Octal | 4 | 22 | 15 |
Examples of css and html codes for elements with #04120D color. Also use rgb(4,18,13) instead hex code.
.myTextColor { color: #04120D; }
<p style="color:#04120D">This sample text font color is #04120D.</p>
This text font color is #04120D.
.myBgColor { background-color: #04120D; }
<div style="background-color:#04120D">Inner text</div>
This div background color is #04120D.
.myBorderColor { border: 1px solid #04120D; }
<div style="border:3px solid #04120D">Div</div>
This div border color is #04120D.
.myOpacity80 { color: #04120D; opacity: 0.8; }
<p style="color:#04120D;opacity:0.8;">80%</p>
Text with #04120D color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #04120D;}
<p style="text-shadow: 3px 3px 1px #04120D">Text here.</p>
This text has shadow with #04120D color.
.textShadow {text-shadow: 3px 3px 1px #04120D, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #04120D, 5px 5px 20px red">Text here.</p>
This text has shadow with #04120D primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#04120D, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#04120D, Direction=45, Strength=4)">Text</p>
This text has shadow with #04120D and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #04120D; -webkit-box-shadow: 1px 1px 3px 2px #04120D; box-shadow: 1px 1px 3px 2px #04120D; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #04120D; -webkit-box-shadow: 1px 1px 3px 2px #04120D; box-shadow:1px 1px 3px 2px #04120D;">
Div content here</div>
This text has color #04120D on black background.
This text has color #04120D on white background.
This text has black color on #04120D background.
This text has white color on #04120D background.