HEX: #40724F
RGB: (64,114,79)
#40724F contains red, green and blue colors in about the same proportion. Web safe color of #40724F is #336666 (or #366).
#40724F color RGB value is (64,114,79).
RGB: (64,114,79) (25%,45%,31%)
R 64 of 255 = 25%
G 114 of 255 = 45%
B 79 of 255 = 31%
R + G + B ~ 34%. #40724F is quite dark color.
R + G + B =
64 + 114 + 79 = 257 (100%)
R 64 of 257 ~ 24.9%
G 114 of 257 ~ 44.36%
B 79 of 257 ~ 30.74%
#40724F color CMYK value is (44,0,31,55).
CMYK: (44,0,31,55) C44M0Y31K55 (44%,0%,31%,55%) (0.44/0.00/0.31/0.55)
40 | 72 | 4F | |
---|---|---|---|
RGB | 64 | 114 | 79 |
HSL | 138° | 28.09% | 34.90% |
HSB/HSV | 138° | 43.86% | 44.71% |
CMYK | 43.86% | 0.00% | 30.70% |
55.29% |
HEX | 40 | 72 | 4F |
Decimal | 64 | 114 | 79 |
Binary | 1000000 | 1110010 | 1001111 |
Octal | 100 | 162 | 117 |
Examples of css and html codes for elements with #40724F color. Also use rgb(64,114,79) instead hex code.
.myTextColor { color: #40724F; }
<p style="color:#40724F">This sample text font color is #40724F.</p>
This text font color is #40724F.
.myBgColor { background-color: #40724F; }
<div style="background-color:#40724F">Inner text</div>
This div background color is #40724F.
.myBorderColor { border: 1px solid #40724F; }
<div style="border:3px solid #40724F">Div</div>
This div border color is #40724F.
.myOpacity80 { color: #40724F; opacity: 0.8; }
<p style="color:#40724F;opacity:0.8;">80%</p>
Text with #40724F color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #40724F;}
<p style="text-shadow: 3px 3px 1px #40724F">Text here.</p>
This text has shadow with #40724F color.
.textShadow {text-shadow: 3px 3px 1px #40724F, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #40724F, 5px 5px 20px red">Text here.</p>
This text has shadow with #40724F primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#40724F, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#40724F, Direction=45, Strength=4)">Text</p>
This text has shadow with #40724F and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #40724F; -webkit-box-shadow: 1px 1px 3px 2px #40724F; box-shadow: 1px 1px 3px 2px #40724F; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #40724F; -webkit-box-shadow: 1px 1px 3px 2px #40724F; box-shadow:1px 1px 3px 2px #40724F;">
Div content here</div>
This text has color #40724F on black background.
This text has color #40724F on white background.
This text has black color on #40724F background.
This text has white color on #40724F background.