HEX: #42474F
RGB: (66,71,79)
#42474F contains red, green and blue colors in about the same proportion. Web safe color of #42474F is #333366 (or #336).
#42474F color RGB value is (66,71,79).
RGB: (66,71,79) (26%,28%,31%)
R 66 of 255 = 26%
G 71 of 255 = 28%
B 79 of 255 = 31%
R + G + B ~ 28%. #42474F is quite dark color.
R + G + B =
66 + 71 + 79 = 216 (100%)
R 66 of 216 ~ 30.56%
G 71 of 216 ~ 32.87%
B 79 of 216 ~ 36.57%
#42474F color CMYK value is (16,10,0,69).
CMYK: (16,10,0,69) C16M10Y0K69 (16%,10%,0%,69%) (0.16/0.10/0.00/0.69)
42 | 47 | 4F | |
---|---|---|---|
RGB | 66 | 71 | 79 |
HSL | 217° | 8.97% | 28.43% |
HSB/HSV | 217° | 16.46% | 30.98% |
CMYK | 16.46% | 10.13% | 0.00% |
69.02% |
HEX | 42 | 47 | 4F |
Decimal | 66 | 71 | 79 |
Binary | 1000010 | 1000111 | 1001111 |
Octal | 102 | 107 | 117 |
Examples of css and html codes for elements with #42474F color. Also use rgb(66,71,79) instead hex code.
.myTextColor { color: #42474F; }
<p style="color:#42474F">This sample text font color is #42474F.</p>
This text font color is #42474F.
.myBgColor { background-color: #42474F; }
<div style="background-color:#42474F">Inner text</div>
This div background color is #42474F.
.myBorderColor { border: 1px solid #42474F; }
<div style="border:3px solid #42474F">Div</div>
This div border color is #42474F.
.myOpacity80 { color: #42474F; opacity: 0.8; }
<p style="color:#42474F;opacity:0.8;">80%</p>
Text with #42474F color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #42474F;}
<p style="text-shadow: 3px 3px 1px #42474F">Text here.</p>
This text has shadow with #42474F color.
.textShadow {text-shadow: 3px 3px 1px #42474F, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #42474F, 5px 5px 20px red">Text here.</p>
This text has shadow with #42474F primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#42474F, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#42474F, Direction=45, Strength=4)">Text</p>
This text has shadow with #42474F and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #42474F; -webkit-box-shadow: 1px 1px 3px 2px #42474F; box-shadow: 1px 1px 3px 2px #42474F; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #42474F; -webkit-box-shadow: 1px 1px 3px 2px #42474F; box-shadow:1px 1px 3px 2px #42474F;">
Div content here</div>
This text has color #42474F on black background.
This text has color #42474F on white background.
This text has black color on #42474F background.
This text has white color on #42474F background.