HEX: #42747E
RGB: (66,116,126)
#42747E contains mainly green and blue colors. Web safe color of #42747E is #336666 (or #366).
#42747E color RGB value is (66,116,126).
RGB: (66,116,126) (26%,45%,49%)
R 66 of 255 = 26%
G 116 of 255 = 45%
B 126 of 255 = 49%
R + G + B ~ 40%. #42747E is middle color (not dark and not light).
R + G + B =
66 + 116 + 126 = 308 (100%)
R 66 of 308 ~ 21.43%
G 116 of 308 ~ 37.66%
B 126 of 308 ~ 40.91%
#42747E color CMYK value is (48,8,0,51).
CMYK: (48,8,0,51) C48M8Y0K51 (48%,8%,0%,51%) (0.48/0.08/0.00/0.51)
42 | 74 | 7E | |
---|---|---|---|
RGB | 66 | 116 | 126 |
HSL | 190° | 31.25% | 37.65% |
HSB/HSV | 190° | 47.62% | 49.41% |
CMYK | 47.62% | 7.94% | 0.00% |
50.59% |
HEX | 42 | 74 | 7E |
Decimal | 66 | 116 | 126 |
Binary | 1000010 | 1110100 | 1111110 |
Octal | 102 | 164 | 176 |
Examples of css and html codes for elements with #42747E color. Also use rgb(66,116,126) instead hex code.
.myTextColor { color: #42747E; }
<p style="color:#42747E">This sample text font color is #42747E.</p>
This text font color is #42747E.
.myBgColor { background-color: #42747E; }
<div style="background-color:#42747E">Inner text</div>
This div background color is #42747E.
.myBorderColor { border: 1px solid #42747E; }
<div style="border:3px solid #42747E">Div</div>
This div border color is #42747E.
.myOpacity80 { color: #42747E; opacity: 0.8; }
<p style="color:#42747E;opacity:0.8;">80%</p>
Text with #42747E color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #42747E;}
<p style="text-shadow: 3px 3px 1px #42747E">Text here.</p>
This text has shadow with #42747E color.
.textShadow {text-shadow: 3px 3px 1px #42747E, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #42747E, 5px 5px 20px red">Text here.</p>
This text has shadow with #42747E primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#42747E, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#42747E, Direction=45, Strength=4)">Text</p>
This text has shadow with #42747E and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #42747E; -webkit-box-shadow: 1px 1px 3px 2px #42747E; box-shadow: 1px 1px 3px 2px #42747E; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #42747E; -webkit-box-shadow: 1px 1px 3px 2px #42747E; box-shadow:1px 1px 3px 2px #42747E;">
Div content here</div>
This text has color #42747E on black background.
This text has color #42747E on white background.
This text has black color on #42747E background.
This text has white color on #42747E background.