HEX: #04009D
RGB: (4,0,157)
#04009D contains mainly blue color. Web safe color of #04009D is #000099 (or #009).
#04009D color RGB value is (4,0,157).
RGB: (4,0,157) (2%,0%,62%)
R 4 of 255 = 2%
G 0 of 255 = 0%
B 157 of 255 = 62%
R + G + B ~ 21%. #04009D is dark color.
R + G + B =
4 + 0 + 157 = 161 (100%)
R 4 of 161 ~ 2.48%
G 0 of 161 ~ 0%
B 157 of 161 ~ 97.52%
#04009D color CMYK value is (97,100,0,38).
CMYK: (97,100,0,38) C97M100Y0K38 (97%,100%,0%,38%) (0.97/1.00/0.00/0.38)
04 | 00 | 9D | |
---|---|---|---|
RGB | 4 | 0 | 157 |
HSL | 242° | 100.00% | 30.78% |
HSB/HSV | 242° | 100.00% | 61.57% |
CMYK | 97.45% | 100.00% | 0.00% |
38.43% |
HEX | 04 | 00 | 9D |
Decimal | 4 | 0 | 157 |
Binary | 100 | 0 | 10011101 |
Octal | 4 | 0 | 235 |
Examples of css and html codes for elements with #04009D color. Also use rgb(4,0,157) instead hex code.
.myTextColor { color: #04009D; }
<p style="color:#04009D">This sample text font color is #04009D.</p>
This text font color is #04009D.
.myBgColor { background-color: #04009D; }
<div style="background-color:#04009D">Inner text</div>
This div background color is #04009D.
.myBorderColor { border: 1px solid #04009D; }
<div style="border:3px solid #04009D">Div</div>
This div border color is #04009D.
.myOpacity80 { color: #04009D; opacity: 0.8; }
<p style="color:#04009D;opacity:0.8;">80%</p>
Text with #04009D color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #04009D;}
<p style="text-shadow: 3px 3px 1px #04009D">Text here.</p>
This text has shadow with #04009D color.
.textShadow {text-shadow: 3px 3px 1px #04009D, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #04009D, 5px 5px 20px red">Text here.</p>
This text has shadow with #04009D primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#04009D, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#04009D, Direction=45, Strength=4)">Text</p>
This text has shadow with #04009D and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #04009D; -webkit-box-shadow: 1px 1px 3px 2px #04009D; box-shadow: 1px 1px 3px 2px #04009D; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #04009D; -webkit-box-shadow: 1px 1px 3px 2px #04009D; box-shadow:1px 1px 3px 2px #04009D;">
Div content here</div>
This text has color #04009D on black background.
This text has color #04009D on white background.
This text has black color on #04009D background.
This text has white color on #04009D background.