HEX: #31475E
RGB: (49,71,94)
#31475E contains red, green and blue colors in about the same proportion. Web safe color of #31475E is #333366 (or #336).
#31475E color RGB value is (49,71,94).
RGB: (49,71,94) (19%,28%,37%)
R 49 of 255 = 19%
G 71 of 255 = 28%
B 94 of 255 = 37%
R + G + B ~ 28%. #31475E is quite dark color.
R + G + B =
49 + 71 + 94 = 214 (100%)
R 49 of 214 ~ 22.9%
G 71 of 214 ~ 33.18%
B 94 of 214 ~ 43.93%
#31475E color CMYK value is (48,24,0,63).
CMYK: (48,24,0,63) C48M24Y0K63 (48%,24%,0%,63%) (0.48/0.24/0.00/0.63)
31 | 47 | 5E | |
---|---|---|---|
RGB | 49 | 71 | 94 |
HSL | 211° | 31.47% | 28.04% |
HSB/HSV | 211° | 47.87% | 36.86% |
CMYK | 47.87% | 24.47% | 0.00% |
63.14% |
HEX | 31 | 47 | 5E |
Decimal | 49 | 71 | 94 |
Binary | 110001 | 1000111 | 1011110 |
Octal | 61 | 107 | 136 |
Examples of css and html codes for elements with #31475E color. Also use rgb(49,71,94) instead hex code.
.myTextColor { color: #31475E; }
<p style="color:#31475E">This sample text font color is #31475E.</p>
This text font color is #31475E.
.myBgColor { background-color: #31475E; }
<div style="background-color:#31475E">Inner text</div>
This div background color is #31475E.
.myBorderColor { border: 1px solid #31475E; }
<div style="border:3px solid #31475E">Div</div>
This div border color is #31475E.
.myOpacity80 { color: #31475E; opacity: 0.8; }
<p style="color:#31475E;opacity:0.8;">80%</p>
Text with #31475E color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #31475E;}
<p style="text-shadow: 3px 3px 1px #31475E">Text here.</p>
This text has shadow with #31475E color.
.textShadow {text-shadow: 3px 3px 1px #31475E, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #31475E, 5px 5px 20px red">Text here.</p>
This text has shadow with #31475E primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#31475E, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#31475E, Direction=45, Strength=4)">Text</p>
This text has shadow with #31475E and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #31475E; -webkit-box-shadow: 1px 1px 3px 2px #31475E; box-shadow: 1px 1px 3px 2px #31475E; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #31475E; -webkit-box-shadow: 1px 1px 3px 2px #31475E; box-shadow:1px 1px 3px 2px #31475E;">
Div content here</div>
This text has color #31475E on black background.
This text has color #31475E on white background.
This text has black color on #31475E background.
This text has white color on #31475E background.