HEX: #42505B
RGB: (66,80,91)
#42505B contains red, green and blue colors in about the same proportion. Web safe color of #42505B is #336666 (or #366).
#42505B color RGB value is (66,80,91).
RGB: (66,80,91) (26%,31%,36%)
R 66 of 255 = 26%
G 80 of 255 = 31%
B 91 of 255 = 36%
R + G + B ~ 31%. #42505B is quite dark color.
R + G + B =
66 + 80 + 91 = 237 (100%)
R 66 of 237 ~ 27.85%
G 80 of 237 ~ 33.76%
B 91 of 237 ~ 38.4%
#42505B color CMYK value is (27,12,0,64).
CMYK: (27,12,0,64) C27M12Y0K64 (27%,12%,0%,64%) (0.27/0.12/0.00/0.64)
42 | 50 | 5B | |
---|---|---|---|
RGB | 66 | 80 | 91 |
HSL | 206° | 15.92% | 30.78% |
HSB/HSV | 206° | 27.47% | 35.69% |
CMYK | 27.47% | 12.09% | 0.00% |
64.31% |
HEX | 42 | 50 | 5B |
Decimal | 66 | 80 | 91 |
Binary | 1000010 | 1010000 | 1011011 |
Octal | 102 | 120 | 133 |
Examples of css and html codes for elements with #42505B color. Also use rgb(66,80,91) instead hex code.
.myTextColor { color: #42505B; }
<p style="color:#42505B">This sample text font color is #42505B.</p>
This text font color is #42505B.
.myBgColor { background-color: #42505B; }
<div style="background-color:#42505B">Inner text</div>
This div background color is #42505B.
.myBorderColor { border: 1px solid #42505B; }
<div style="border:3px solid #42505B">Div</div>
This div border color is #42505B.
.myOpacity80 { color: #42505B; opacity: 0.8; }
<p style="color:#42505B;opacity:0.8;">80%</p>
Text with #42505B color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #42505B;}
<p style="text-shadow: 3px 3px 1px #42505B">Text here.</p>
This text has shadow with #42505B color.
.textShadow {text-shadow: 3px 3px 1px #42505B, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #42505B, 5px 5px 20px red">Text here.</p>
This text has shadow with #42505B primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#42505B, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#42505B, Direction=45, Strength=4)">Text</p>
This text has shadow with #42505B and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #42505B; -webkit-box-shadow: 1px 1px 3px 2px #42505B; box-shadow: 1px 1px 3px 2px #42505B; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #42505B; -webkit-box-shadow: 1px 1px 3px 2px #42505B; box-shadow:1px 1px 3px 2px #42505B;">
Div content here</div>
This text has color #42505B on black background.
This text has color #42505B on white background.
This text has black color on #42505B background.
This text has white color on #42505B background.