HEX: #04061F
RGB: (4,6,31)
#04061F contains red, green and blue colors in about the same proportion. Web safe color of #04061F is #000033 (or #003).
#04061F color RGB value is (4,6,31).
RGB: (4,6,31) (2%,2%,12%)
R 4 of 255 = 2%
G 6 of 255 = 2%
B 31 of 255 = 12%
R + G + B ~ 5%. #04061F is dark color.
R + G + B =
4 + 6 + 31 = 41 (100%)
R 4 of 41 ~ 9.76%
G 6 of 41 ~ 14.63%
B 31 of 41 ~ 75.61%
#04061F color CMYK value is (87,81,0,88).
CMYK: (87,81,0,88) C87M81Y0K88 (87%,81%,0%,88%) (0.87/0.81/0.00/0.88)
04 | 06 | 1F | |
---|---|---|---|
RGB | 4 | 6 | 31 |
HSL | 236° | 77.14% | 6.86% |
HSB/HSV | 236° | 87.10% | 12.16% |
CMYK | 87.10% | 80.65% | 0.00% |
87.84% |
HEX | 04 | 06 | 1F |
Decimal | 4 | 6 | 31 |
Binary | 100 | 110 | 11111 |
Octal | 4 | 6 | 37 |
Examples of css and html codes for elements with #04061F color. Also use rgb(4,6,31) instead hex code.
.myTextColor { color: #04061F; }
<p style="color:#04061F">This sample text font color is #04061F.</p>
This text font color is #04061F.
.myBgColor { background-color: #04061F; }
<div style="background-color:#04061F">Inner text</div>
This div background color is #04061F.
.myBorderColor { border: 1px solid #04061F; }
<div style="border:3px solid #04061F">Div</div>
This div border color is #04061F.
.myOpacity80 { color: #04061F; opacity: 0.8; }
<p style="color:#04061F;opacity:0.8;">80%</p>
Text with #04061F color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #04061F;}
<p style="text-shadow: 3px 3px 1px #04061F">Text here.</p>
This text has shadow with #04061F color.
.textShadow {text-shadow: 3px 3px 1px #04061F, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #04061F, 5px 5px 20px red">Text here.</p>
This text has shadow with #04061F primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#04061F, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#04061F, Direction=45, Strength=4)">Text</p>
This text has shadow with #04061F and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #04061F; -webkit-box-shadow: 1px 1px 3px 2px #04061F; box-shadow: 1px 1px 3px 2px #04061F; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #04061F; -webkit-box-shadow: 1px 1px 3px 2px #04061F; box-shadow:1px 1px 3px 2px #04061F;">
Div content here</div>
This text has color #04061F on black background.
This text has color #04061F on white background.
This text has black color on #04061F background.
This text has white color on #04061F background.