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