HEX: #313D8D
RGB: (49,61,141)
#313D8D contains mainly blue color. Web safe color of #313D8D is #333399 (or #339).
#313D8D color RGB value is (49,61,141).
RGB: (49,61,141) (19%,24%,55%)
R 49 of 255 = 19%
G 61 of 255 = 24%
B 141 of 255 = 55%
R + G + B ~ 33%. #313D8D is quite dark color.
R + G + B =
49 + 61 + 141 = 251 (100%)
R 49 of 251 ~ 19.52%
G 61 of 251 ~ 24.3%
B 141 of 251 ~ 56.18%
#313D8D color CMYK value is (65,57,0,45).
CMYK: (65,57,0,45) C65M57Y0K45 (65%,57%,0%,45%) (0.65/0.57/0.00/0.45)
31 | 3D | 8D | |
---|---|---|---|
RGB | 49 | 61 | 141 |
HSL | 232° | 48.42% | 37.25% |
HSB/HSV | 232° | 65.25% | 55.29% |
CMYK | 65.25% | 56.74% | 0.00% |
44.71% |
HEX | 31 | 3D | 8D |
Decimal | 49 | 61 | 141 |
Binary | 110001 | 111101 | 10001101 |
Octal | 61 | 75 | 215 |
Examples of css and html codes for elements with #313D8D color. Also use rgb(49,61,141) instead hex code.
.myTextColor { color: #313D8D; }
<p style="color:#313D8D">This sample text font color is #313D8D.</p>
This text font color is #313D8D.
.myBgColor { background-color: #313D8D; }
<div style="background-color:#313D8D">Inner text</div>
This div background color is #313D8D.
.myBorderColor { border: 1px solid #313D8D; }
<div style="border:3px solid #313D8D">Div</div>
This div border color is #313D8D.
.myOpacity80 { color: #313D8D; opacity: 0.8; }
<p style="color:#313D8D;opacity:0.8;">80%</p>
Text with #313D8D color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #313D8D;}
<p style="text-shadow: 3px 3px 1px #313D8D">Text here.</p>
This text has shadow with #313D8D color.
.textShadow {text-shadow: 3px 3px 1px #313D8D, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #313D8D, 5px 5px 20px red">Text here.</p>
This text has shadow with #313D8D primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#313D8D, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#313D8D, Direction=45, Strength=4)">Text</p>
This text has shadow with #313D8D and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #313D8D; -webkit-box-shadow: 1px 1px 3px 2px #313D8D; box-shadow: 1px 1px 3px 2px #313D8D; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #313D8D; -webkit-box-shadow: 1px 1px 3px 2px #313D8D; box-shadow:1px 1px 3px 2px #313D8D;">
Div content here</div>
This text has color #313D8D on black background.
This text has color #313D8D on white background.
This text has black color on #313D8D background.
This text has white color on #313D8D background.