HEX: #004797
RGB: (0,71,151)
#004797 contains mainly blue color. Web safe color of #004797 is #003399 (or #039).
#004797 color RGB value is (0,71,151).
RGB: (0,71,151) (0%,28%,59%)
R 0 of 255 = 0%
G 71 of 255 = 28%
B 151 of 255 = 59%
R + G + B ~ 29%. #004797 is quite dark color.
R + G + B =
0 + 71 + 151 = 222 (100%)
R 0 of 222 ~ 0%
G 71 of 222 ~ 31.98%
B 151 of 222 ~ 68.02%
#004797 color CMYK value is (100,53,0,41).
CMYK: (100,53,0,41) C100M53Y0K41 (100%,53%,0%,41%) (1.00/0.53/0.00/0.41)
00 | 47 | 97 | |
---|---|---|---|
RGB | 0 | 71 | 151 |
HSL | 212° | 100.00% | 29.61% |
HSB/HSV | 212° | 100.00% | 59.22% |
CMYK | 100.00% | 52.98% | 0.00% |
40.78% |
HEX | 00 | 47 | 97 |
Decimal | 0 | 71 | 151 |
Binary | 0 | 1000111 | 10010111 |
Octal | 0 | 107 | 227 |
Examples of css and html codes for elements with #004797 color. Also use rgb(0,71,151) instead hex code.
.myTextColor { color: #004797; }
<p style="color:#004797">This sample text font color is #004797.</p>
This text font color is #004797.
.myBgColor { background-color: #004797; }
<div style="background-color:#004797">Inner text</div>
This div background color is #004797.
.myBorderColor { border: 1px solid #004797; }
<div style="border:3px solid #004797">Div</div>
This div border color is #004797.
.myOpacity80 { color: #004797; opacity: 0.8; }
<p style="color:#004797;opacity:0.8;">80%</p>
Text with #004797 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #004797;}
<p style="text-shadow: 3px 3px 1px #004797">Text here.</p>
This text has shadow with #004797 color.
.textShadow {text-shadow: 3px 3px 1px #004797, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #004797, 5px 5px 20px red">Text here.</p>
This text has shadow with #004797 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#004797, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#004797, Direction=45, Strength=4)">Text</p>
This text has shadow with #004797 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #004797; -webkit-box-shadow: 1px 1px 3px 2px #004797; box-shadow: 1px 1px 3px 2px #004797; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #004797; -webkit-box-shadow: 1px 1px 3px 2px #004797; box-shadow:1px 1px 3px 2px #004797;">
Div content here</div>
This text has color #004797 on black background.
This text has color #004797 on white background.
This text has black color on #004797 background.
This text has white color on #004797 background.