HEX: #42557B
RGB: (66,85,123)
#42557B contains red, green and blue colors in about the same proportion. Web safe color of #42557B is #336666 (or #366).
#42557B color RGB value is (66,85,123).
RGB: (66,85,123) (26%,33%,48%)
R 66 of 255 = 26%
G 85 of 255 = 33%
B 123 of 255 = 48%
R + G + B ~ 36%. #42557B is quite dark color.
R + G + B =
66 + 85 + 123 = 274 (100%)
R 66 of 274 ~ 24.09%
G 85 of 274 ~ 31.02%
B 123 of 274 ~ 44.89%
#42557B color CMYK value is (46,31,0,52).
CMYK: (46,31,0,52) C46M31Y0K52 (46%,31%,0%,52%) (0.46/0.31/0.00/0.52)
42 | 55 | 7B | |
---|---|---|---|
RGB | 66 | 85 | 123 |
HSL | 220° | 30.16% | 37.06% |
HSB/HSV | 220° | 46.34% | 48.24% |
CMYK | 46.34% | 30.89% | 0.00% |
51.76% |
HEX | 42 | 55 | 7B |
Decimal | 66 | 85 | 123 |
Binary | 1000010 | 1010101 | 1111011 |
Octal | 102 | 125 | 173 |
Examples of css and html codes for elements with #42557B color. Also use rgb(66,85,123) instead hex code.
.myTextColor { color: #42557B; }
<p style="color:#42557B">This sample text font color is #42557B.</p>
This text font color is #42557B.
.myBgColor { background-color: #42557B; }
<div style="background-color:#42557B">Inner text</div>
This div background color is #42557B.
.myBorderColor { border: 1px solid #42557B; }
<div style="border:3px solid #42557B">Div</div>
This div border color is #42557B.
.myOpacity80 { color: #42557B; opacity: 0.8; }
<p style="color:#42557B;opacity:0.8;">80%</p>
Text with #42557B color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #42557B;}
<p style="text-shadow: 3px 3px 1px #42557B">Text here.</p>
This text has shadow with #42557B color.
.textShadow {text-shadow: 3px 3px 1px #42557B, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #42557B, 5px 5px 20px red">Text here.</p>
This text has shadow with #42557B primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#42557B, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#42557B, Direction=45, Strength=4)">Text</p>
This text has shadow with #42557B and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #42557B; -webkit-box-shadow: 1px 1px 3px 2px #42557B; box-shadow: 1px 1px 3px 2px #42557B; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #42557B; -webkit-box-shadow: 1px 1px 3px 2px #42557B; box-shadow:1px 1px 3px 2px #42557B;">
Div content here</div>
This text has color #42557B on black background.
This text has color #42557B on white background.
This text has black color on #42557B background.
This text has white color on #42557B background.