HEX: #40738E
RGB: (64,115,142)
#40738E contains mainly green and blue colors. Web safe color of #40738E is #336699 (or #369).
#40738E color RGB value is (64,115,142).
RGB: (64,115,142) (25%,45%,56%)
R 64 of 255 = 25%
G 115 of 255 = 45%
B 142 of 255 = 56%
R + G + B ~ 42%. #40738E is middle color (not dark and not light).
R + G + B =
64 + 115 + 142 = 321 (100%)
R 64 of 321 ~ 19.94%
G 115 of 321 ~ 35.83%
B 142 of 321 ~ 44.24%
#40738E color CMYK value is (55,19,0,44).
CMYK: (55,19,0,44) C55M19Y0K44 (55%,19%,0%,44%) (0.55/0.19/0.00/0.44)
40 | 73 | 8E | |
---|---|---|---|
RGB | 64 | 115 | 142 |
HSL | 201° | 37.86% | 40.39% |
HSB/HSV | 201° | 54.93% | 55.69% |
CMYK | 54.93% | 19.01% | 0.00% |
44.31% |
HEX | 40 | 73 | 8E |
Decimal | 64 | 115 | 142 |
Binary | 1000000 | 1110011 | 10001110 |
Octal | 100 | 163 | 216 |
Examples of css and html codes for elements with #40738E color. Also use rgb(64,115,142) instead hex code.
.myTextColor { color: #40738E; }
<p style="color:#40738E">This sample text font color is #40738E.</p>
This text font color is #40738E.
.myBgColor { background-color: #40738E; }
<div style="background-color:#40738E">Inner text</div>
This div background color is #40738E.
.myBorderColor { border: 1px solid #40738E; }
<div style="border:3px solid #40738E">Div</div>
This div border color is #40738E.
.myOpacity80 { color: #40738E; opacity: 0.8; }
<p style="color:#40738E;opacity:0.8;">80%</p>
Text with #40738E color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #40738E;}
<p style="text-shadow: 3px 3px 1px #40738E">Text here.</p>
This text has shadow with #40738E color.
.textShadow {text-shadow: 3px 3px 1px #40738E, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #40738E, 5px 5px 20px red">Text here.</p>
This text has shadow with #40738E primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#40738E, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#40738E, Direction=45, Strength=4)">Text</p>
This text has shadow with #40738E and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #40738E; -webkit-box-shadow: 1px 1px 3px 2px #40738E; box-shadow: 1px 1px 3px 2px #40738E; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #40738E; -webkit-box-shadow: 1px 1px 3px 2px #40738E; box-shadow:1px 1px 3px 2px #40738E;">
Div content here</div>
This text has color #40738E on black background.
This text has color #40738E on white background.
This text has black color on #40738E background.
This text has white color on #40738E background.