HEX: #42478D
RGB: (66,71,141)
#42478D contains mainly blue color. Web safe color of #42478D is #333399 (or #339).
#42478D color RGB value is (66,71,141).
RGB: (66,71,141) (26%,28%,55%)
R 66 of 255 = 26%
G 71 of 255 = 28%
B 141 of 255 = 55%
R + G + B ~ 36%. #42478D is quite dark color.
R + G + B =
66 + 71 + 141 = 278 (100%)
R 66 of 278 ~ 23.74%
G 71 of 278 ~ 25.54%
B 141 of 278 ~ 50.72%
#42478D color CMYK value is (53,50,0,45).
CMYK: (53,50,0,45) C53M50Y0K45 (53%,50%,0%,45%) (0.53/0.50/0.00/0.45)
42 | 47 | 8D | |
---|---|---|---|
RGB | 66 | 71 | 141 |
HSL | 236° | 36.23% | 40.59% |
HSB/HSV | 236° | 53.19% | 55.29% |
CMYK | 53.19% | 49.65% | 0.00% |
44.71% |
HEX | 42 | 47 | 8D |
Decimal | 66 | 71 | 141 |
Binary | 1000010 | 1000111 | 10001101 |
Octal | 102 | 107 | 215 |
Examples of css and html codes for elements with #42478D color. Also use rgb(66,71,141) instead hex code.
.myTextColor { color: #42478D; }
<p style="color:#42478D">This sample text font color is #42478D.</p>
This text font color is #42478D.
.myBgColor { background-color: #42478D; }
<div style="background-color:#42478D">Inner text</div>
This div background color is #42478D.
.myBorderColor { border: 1px solid #42478D; }
<div style="border:3px solid #42478D">Div</div>
This div border color is #42478D.
.myOpacity80 { color: #42478D; opacity: 0.8; }
<p style="color:#42478D;opacity:0.8;">80%</p>
Text with #42478D color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #42478D;}
<p style="text-shadow: 3px 3px 1px #42478D">Text here.</p>
This text has shadow with #42478D color.
.textShadow {text-shadow: 3px 3px 1px #42478D, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #42478D, 5px 5px 20px red">Text here.</p>
This text has shadow with #42478D primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#42478D, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#42478D, Direction=45, Strength=4)">Text</p>
This text has shadow with #42478D and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #42478D; -webkit-box-shadow: 1px 1px 3px 2px #42478D; box-shadow: 1px 1px 3px 2px #42478D; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #42478D; -webkit-box-shadow: 1px 1px 3px 2px #42478D; box-shadow:1px 1px 3px 2px #42478D;">
Div content here</div>
This text has color #42478D on black background.
This text has color #42478D on white background.
This text has black color on #42478D background.
This text has white color on #42478D background.