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