HEX: #004872
RGB: (0,72,114)
#004872 contains only green and blue colors. Web safe color of #004872 is #003366 (or #036).
#004872 color RGB value is (0,72,114).
RGB: (0,72,114) (0%,28%,45%)
R 0 of 255 = 0%
G 72 of 255 = 28%
B 114 of 255 = 45%
R + G + B ~ 24%. #004872 is dark color.
R + G + B =
0 + 72 + 114 = 186 (100%)
R 0 of 186 ~ 0%
G 72 of 186 ~ 38.71%
B 114 of 186 ~ 61.29%
#004872 color CMYK value is (100,37,0,55).
CMYK: (100,37,0,55) C100M37Y0K55 (100%,37%,0%,55%) (1.00/0.37/0.00/0.55)
00 | 48 | 72 | |
---|---|---|---|
RGB | 0 | 72 | 114 |
HSL | 202° | 100.00% | 22.35% |
HSB/HSV | 202° | 100.00% | 44.71% |
CMYK | 100.00% | 36.84% | 0.00% |
55.29% |
HEX | 00 | 48 | 72 |
Decimal | 0 | 72 | 114 |
Binary | 0 | 1001000 | 1110010 |
Octal | 0 | 110 | 162 |
Examples of css and html codes for elements with #004872 color. Also use rgb(0,72,114) instead hex code.
.myTextColor { color: #004872; }
<p style="color:#004872">This sample text font color is #004872.</p>
This text font color is #004872.
.myBgColor { background-color: #004872; }
<div style="background-color:#004872">Inner text</div>
This div background color is #004872.
.myBorderColor { border: 1px solid #004872; }
<div style="border:3px solid #004872">Div</div>
This div border color is #004872.
.myOpacity80 { color: #004872; opacity: 0.8; }
<p style="color:#004872;opacity:0.8;">80%</p>
Text with #004872 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #004872;}
<p style="text-shadow: 3px 3px 1px #004872">Text here.</p>
This text has shadow with #004872 color.
.textShadow {text-shadow: 3px 3px 1px #004872, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #004872, 5px 5px 20px red">Text here.</p>
This text has shadow with #004872 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#004872, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#004872, Direction=45, Strength=4)">Text</p>
This text has shadow with #004872 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #004872; -webkit-box-shadow: 1px 1px 3px 2px #004872; box-shadow: 1px 1px 3px 2px #004872; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #004872; -webkit-box-shadow: 1px 1px 3px 2px #004872; box-shadow:1px 1px 3px 2px #004872;">
Div content here</div>
This text has color #004872 on black background.
This text has color #004872 on white background.
This text has black color on #004872 background.
This text has white color on #004872 background.