HEX: #042A7D
RGB: (4,42,125)
#042A7D contains mainly blue color. Web safe color of #042A7D is #003366 (or #036).
#042A7D color RGB value is (4,42,125).
RGB: (4,42,125) (2%,16%,49%)
R 4 of 255 = 2%
G 42 of 255 = 16%
B 125 of 255 = 49%
R + G + B ~ 22%. #042A7D is dark color.
R + G + B =
4 + 42 + 125 = 171 (100%)
R 4 of 171 ~ 2.34%
G 42 of 171 ~ 24.56%
B 125 of 171 ~ 73.1%
#042A7D color CMYK value is (97,66,0,51).
CMYK: (97,66,0,51) C97M66Y0K51 (97%,66%,0%,51%) (0.97/0.66/0.00/0.51)
04 | 2A | 7D | |
---|---|---|---|
RGB | 4 | 42 | 125 |
HSL | 221° | 93.80% | 25.29% |
HSB/HSV | 221° | 96.80% | 49.02% |
CMYK | 96.80% | 66.40% | 0.00% |
50.98% |
HEX | 04 | 2A | 7D |
Decimal | 4 | 42 | 125 |
Binary | 100 | 101010 | 1111101 |
Octal | 4 | 52 | 175 |
Examples of css and html codes for elements with #042A7D color. Also use rgb(4,42,125) instead hex code.
.myTextColor { color: #042A7D; }
<p style="color:#042A7D">This sample text font color is #042A7D.</p>
This text font color is #042A7D.
.myBgColor { background-color: #042A7D; }
<div style="background-color:#042A7D">Inner text</div>
This div background color is #042A7D.
.myBorderColor { border: 1px solid #042A7D; }
<div style="border:3px solid #042A7D">Div</div>
This div border color is #042A7D.
.myOpacity80 { color: #042A7D; opacity: 0.8; }
<p style="color:#042A7D;opacity:0.8;">80%</p>
Text with #042A7D color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #042A7D;}
<p style="text-shadow: 3px 3px 1px #042A7D">Text here.</p>
This text has shadow with #042A7D color.
.textShadow {text-shadow: 3px 3px 1px #042A7D, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #042A7D, 5px 5px 20px red">Text here.</p>
This text has shadow with #042A7D primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#042A7D, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#042A7D, Direction=45, Strength=4)">Text</p>
This text has shadow with #042A7D and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #042A7D; -webkit-box-shadow: 1px 1px 3px 2px #042A7D; box-shadow: 1px 1px 3px 2px #042A7D; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #042A7D; -webkit-box-shadow: 1px 1px 3px 2px #042A7D; box-shadow:1px 1px 3px 2px #042A7D;">
Div content here</div>
This text has color #042A7D on black background.
This text has color #042A7D on white background.
This text has black color on #042A7D background.
This text has white color on #042A7D background.