HEX: #420308
RGB: (66,3,8)
#420308 contains mainly red and blue colors. Web safe color of #420308 is #330000 (or #300).
#420308 color RGB value is (66,3,8).
RGB: (66,3,8) (26%,1%,3%)
R 66 of 255 = 26%
G 3 of 255 = 1%
B 8 of 255 = 3%
R + G + B ~ 10%. #420308 is dark color.
R + G + B =
66 + 3 + 8 = 77 (100%)
R 66 of 77 ~ 85.71%
G 3 of 77 ~ 3.9%
B 8 of 77 ~ 10.39%
#420308 color CMYK value is (0,95,88,74).
CMYK: (0,95,88,74) C0M95Y88K74 (0%,95%,88%,74%) (0.00/0.95/0.88/0.74)
42 | 03 | 08 | |
---|---|---|---|
RGB | 66 | 3 | 8 |
HSL | 355° | 91.30% | 13.53% |
HSB/HSV | 355° | 95.45% | 25.88% |
CMYK | 0.00% | 95.45% | 87.88% |
74.12% |
HEX | 42 | 03 | 08 |
Decimal | 66 | 3 | 8 |
Binary | 1000010 | 11 | 1000 |
Octal | 102 | 3 | 10 |
Examples of css and html codes for elements with #420308 color. Also use rgb(66,3,8) instead hex code.
.myTextColor { color: #420308; }
<p style="color:#420308">This sample text font color is #420308.</p>
This text font color is #420308.
.myBgColor { background-color: #420308; }
<div style="background-color:#420308">Inner text</div>
This div background color is #420308.
.myBorderColor { border: 1px solid #420308; }
<div style="border:3px solid #420308">Div</div>
This div border color is #420308.
.myOpacity80 { color: #420308; opacity: 0.8; }
<p style="color:#420308;opacity:0.8;">80%</p>
Text with #420308 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #420308;}
<p style="text-shadow: 3px 3px 1px #420308">Text here.</p>
This text has shadow with #420308 color.
.textShadow {text-shadow: 3px 3px 1px #420308, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #420308, 5px 5px 20px red">Text here.</p>
This text has shadow with #420308 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#420308, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#420308, Direction=45, Strength=4)">Text</p>
This text has shadow with #420308 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #420308; -webkit-box-shadow: 1px 1px 3px 2px #420308; box-shadow: 1px 1px 3px 2px #420308; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #420308; -webkit-box-shadow: 1px 1px 3px 2px #420308; box-shadow:1px 1px 3px 2px #420308;">
Div content here</div>
This text has color #420308 on black background.
This text has color #420308 on white background.
This text has black color on #420308 background.
This text has white color on #420308 background.