HEX: #42425F
RGB: (66,66,95)
#42425F contains red, green and blue colors in about the same proportion. Web safe color of #42425F is #333366 (or #336).
#42425F color RGB value is (66,66,95).
RGB: (66,66,95) (26%,26%,37%)
R 66 of 255 = 26%
G 66 of 255 = 26%
B 95 of 255 = 37%
R + G + B ~ 30%. #42425F is quite dark color.
R + G + B =
66 + 66 + 95 = 227 (100%)
R 66 of 227 ~ 29.07%
G 66 of 227 ~ 29.07%
B 95 of 227 ~ 41.85%
#42425F color CMYK value is (31,31,0,63).
CMYK: (31,31,0,63) C31M31Y0K63 (31%,31%,0%,63%) (0.31/0.31/0.00/0.63)
42 | 42 | 5F | |
---|---|---|---|
RGB | 66 | 66 | 95 |
HSL | 240° | 18.01% | 31.57% |
HSB/HSV | 240° | 30.53% | 37.25% |
CMYK | 30.53% | 30.53% | 0.00% |
62.75% |
HEX | 42 | 42 | 5F |
Decimal | 66 | 66 | 95 |
Binary | 1000010 | 1000010 | 1011111 |
Octal | 102 | 102 | 137 |
Examples of css and html codes for elements with #42425F color. Also use rgb(66,66,95) instead hex code.
.myTextColor { color: #42425F; }
<p style="color:#42425F">This sample text font color is #42425F.</p>
This text font color is #42425F.
.myBgColor { background-color: #42425F; }
<div style="background-color:#42425F">Inner text</div>
This div background color is #42425F.
.myBorderColor { border: 1px solid #42425F; }
<div style="border:3px solid #42425F">Div</div>
This div border color is #42425F.
.myOpacity80 { color: #42425F; opacity: 0.8; }
<p style="color:#42425F;opacity:0.8;">80%</p>
Text with #42425F color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #42425F;}
<p style="text-shadow: 3px 3px 1px #42425F">Text here.</p>
This text has shadow with #42425F color.
.textShadow {text-shadow: 3px 3px 1px #42425F, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #42425F, 5px 5px 20px red">Text here.</p>
This text has shadow with #42425F primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#42425F, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#42425F, Direction=45, Strength=4)">Text</p>
This text has shadow with #42425F and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #42425F; -webkit-box-shadow: 1px 1px 3px 2px #42425F; box-shadow: 1px 1px 3px 2px #42425F; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #42425F; -webkit-box-shadow: 1px 1px 3px 2px #42425F; box-shadow:1px 1px 3px 2px #42425F;">
Div content here</div>
This text has color #42425F on black background.
This text has color #42425F on white background.
This text has black color on #42425F background.
This text has white color on #42425F background.