HEX: #40746C
RGB: (64,116,108)
#40746C contains red, green and blue colors in about the same proportion. Web safe color of #40746C is #336666 (or #366).
#40746C color RGB value is (64,116,108).
RGB: (64,116,108) (25%,45%,42%)
R 64 of 255 = 25%
G 116 of 255 = 45%
B 108 of 255 = 42%
R + G + B ~ 37%. #40746C is quite dark color.
R + G + B =
64 + 116 + 108 = 288 (100%)
R 64 of 288 ~ 22.22%
G 116 of 288 ~ 40.28%
B 108 of 288 ~ 37.5%
#40746C color CMYK value is (45,0,7,55).
CMYK: (45,0,7,55) C45M0Y7K55 (45%,0%,7%,55%) (0.45/0.00/0.07/0.55)
40 | 74 | 6C | |
---|---|---|---|
RGB | 64 | 116 | 108 |
HSL | 171° | 28.89% | 35.29% |
HSB/HSV | 171° | 44.83% | 45.49% |
CMYK | 44.83% | 0.00% | 6.90% |
54.51% |
HEX | 40 | 74 | 6C |
Decimal | 64 | 116 | 108 |
Binary | 1000000 | 1110100 | 1101100 |
Octal | 100 | 164 | 154 |
Examples of css and html codes for elements with #40746C color. Also use rgb(64,116,108) instead hex code.
.myTextColor { color: #40746C; }
<p style="color:#40746C">This sample text font color is #40746C.</p>
This text font color is #40746C.
.myBgColor { background-color: #40746C; }
<div style="background-color:#40746C">Inner text</div>
This div background color is #40746C.
.myBorderColor { border: 1px solid #40746C; }
<div style="border:3px solid #40746C">Div</div>
This div border color is #40746C.
.myOpacity80 { color: #40746C; opacity: 0.8; }
<p style="color:#40746C;opacity:0.8;">80%</p>
Text with #40746C color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #40746C;}
<p style="text-shadow: 3px 3px 1px #40746C">Text here.</p>
This text has shadow with #40746C color.
.textShadow {text-shadow: 3px 3px 1px #40746C, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #40746C, 5px 5px 20px red">Text here.</p>
This text has shadow with #40746C primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#40746C, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#40746C, Direction=45, Strength=4)">Text</p>
This text has shadow with #40746C and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #40746C; -webkit-box-shadow: 1px 1px 3px 2px #40746C; box-shadow: 1px 1px 3px 2px #40746C; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #40746C; -webkit-box-shadow: 1px 1px 3px 2px #40746C; box-shadow:1px 1px 3px 2px #40746C;">
Div content here</div>
This text has color #40746C on black background.
This text has color #40746C on white background.
This text has black color on #40746C background.
This text has white color on #40746C background.