HEX: #313461
RGB: (49,52,97)
#313461 contains red, green and blue colors in about the same proportion. Web safe color of #313461 is #333366 (or #336).
#313461 color RGB value is (49,52,97).
RGB: (49,52,97) (19%,20%,38%)
R 49 of 255 = 19%
G 52 of 255 = 20%
B 97 of 255 = 38%
R + G + B ~ 26%. #313461 is quite dark color.
R + G + B =
49 + 52 + 97 = 198 (100%)
R 49 of 198 ~ 24.75%
G 52 of 198 ~ 26.26%
B 97 of 198 ~ 48.99%
#313461 color CMYK value is (49,46,0,62).
CMYK: (49,46,0,62) C49M46Y0K62 (49%,46%,0%,62%) (0.49/0.46/0.00/0.62)
31 | 34 | 61 | |
---|---|---|---|
RGB | 49 | 52 | 97 |
HSL | 236° | 32.88% | 28.63% |
HSB/HSV | 236° | 49.48% | 38.04% |
CMYK | 49.48% | 46.39% | 0.00% |
61.96% |
HEX | 31 | 34 | 61 |
Decimal | 49 | 52 | 97 |
Binary | 110001 | 110100 | 1100001 |
Octal | 61 | 64 | 141 |
Examples of css and html codes for elements with #313461 color. Also use rgb(49,52,97) instead hex code.
.myTextColor { color: #313461; }
<p style="color:#313461">This sample text font color is #313461.</p>
This text font color is #313461.
.myBgColor { background-color: #313461; }
<div style="background-color:#313461">Inner text</div>
This div background color is #313461.
.myBorderColor { border: 1px solid #313461; }
<div style="border:3px solid #313461">Div</div>
This div border color is #313461.
.myOpacity80 { color: #313461; opacity: 0.8; }
<p style="color:#313461;opacity:0.8;">80%</p>
Text with #313461 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #313461;}
<p style="text-shadow: 3px 3px 1px #313461">Text here.</p>
This text has shadow with #313461 color.
.textShadow {text-shadow: 3px 3px 1px #313461, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #313461, 5px 5px 20px red">Text here.</p>
This text has shadow with #313461 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#313461, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#313461, Direction=45, Strength=4)">Text</p>
This text has shadow with #313461 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #313461; -webkit-box-shadow: 1px 1px 3px 2px #313461; box-shadow: 1px 1px 3px 2px #313461; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #313461; -webkit-box-shadow: 1px 1px 3px 2px #313461; box-shadow:1px 1px 3px 2px #313461;">
Div content here</div>
This text has color #313461 on black background.
This text has color #313461 on white background.
This text has black color on #313461 background.
This text has white color on #313461 background.