HEX: #40684F
RGB: (64,104,79)
#40684F contains red, green and blue colors in about the same proportion. Web safe color of #40684F is #336666 (or #366).
#40684F color RGB value is (64,104,79).
RGB: (64,104,79) (25%,41%,31%)
R 64 of 255 = 25%
G 104 of 255 = 41%
B 79 of 255 = 31%
R + G + B ~ 32%. #40684F is quite dark color.
R + G + B =
64 + 104 + 79 = 247 (100%)
R 64 of 247 ~ 25.91%
G 104 of 247 ~ 42.11%
B 79 of 247 ~ 31.98%
#40684F color CMYK value is (38,0,24,59).
CMYK: (38,0,24,59) C38M0Y24K59 (38%,0%,24%,59%) (0.38/0.00/0.24/0.59)
40 | 68 | 4F | |
---|---|---|---|
RGB | 64 | 104 | 79 |
HSL | 143° | 23.81% | 32.94% |
HSB/HSV | 143° | 38.46% | 40.78% |
CMYK | 38.46% | 0.00% | 24.04% |
59.22% |
HEX | 40 | 68 | 4F |
Decimal | 64 | 104 | 79 |
Binary | 1000000 | 1101000 | 1001111 |
Octal | 100 | 150 | 117 |
Examples of css and html codes for elements with #40684F color. Also use rgb(64,104,79) instead hex code.
.myTextColor { color: #40684F; }
<p style="color:#40684F">This sample text font color is #40684F.</p>
This text font color is #40684F.
.myBgColor { background-color: #40684F; }
<div style="background-color:#40684F">Inner text</div>
This div background color is #40684F.
.myBorderColor { border: 1px solid #40684F; }
<div style="border:3px solid #40684F">Div</div>
This div border color is #40684F.
.myOpacity80 { color: #40684F; opacity: 0.8; }
<p style="color:#40684F;opacity:0.8;">80%</p>
Text with #40684F color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #40684F;}
<p style="text-shadow: 3px 3px 1px #40684F">Text here.</p>
This text has shadow with #40684F color.
.textShadow {text-shadow: 3px 3px 1px #40684F, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #40684F, 5px 5px 20px red">Text here.</p>
This text has shadow with #40684F primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#40684F, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#40684F, Direction=45, Strength=4)">Text</p>
This text has shadow with #40684F and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #40684F; -webkit-box-shadow: 1px 1px 3px 2px #40684F; box-shadow: 1px 1px 3px 2px #40684F; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #40684F; -webkit-box-shadow: 1px 1px 3px 2px #40684F; box-shadow:1px 1px 3px 2px #40684F;">
Div content here</div>
This text has color #40684F on black background.
This text has color #40684F on white background.
This text has black color on #40684F background.
This text has white color on #40684F background.