HEX: #313B79
RGB: (49,59,121)
#313B79 contains mainly blue color. Web safe color of #313B79 is #333366 (or #336).
#313B79 color RGB value is (49,59,121).
RGB: (49,59,121) (19%,23%,47%)
R 49 of 255 = 19%
G 59 of 255 = 23%
B 121 of 255 = 47%
R + G + B ~ 30%. #313B79 is quite dark color.
R + G + B =
49 + 59 + 121 = 229 (100%)
R 49 of 229 ~ 21.4%
G 59 of 229 ~ 25.76%
B 121 of 229 ~ 52.84%
#313B79 color CMYK value is (60,51,0,53).
CMYK: (60,51,0,53) C60M51Y0K53 (60%,51%,0%,53%) (0.60/0.51/0.00/0.53)
31 | 3B | 79 | |
---|---|---|---|
RGB | 49 | 59 | 121 |
HSL | 232° | 42.35% | 33.33% |
HSB/HSV | 232° | 59.50% | 47.45% |
CMYK | 59.50% | 51.24% | 0.00% |
52.55% |
HEX | 31 | 3B | 79 |
Decimal | 49 | 59 | 121 |
Binary | 110001 | 111011 | 1111001 |
Octal | 61 | 73 | 171 |
Examples of css and html codes for elements with #313B79 color. Also use rgb(49,59,121) instead hex code.
.myTextColor { color: #313B79; }
<p style="color:#313B79">This sample text font color is #313B79.</p>
This text font color is #313B79.
.myBgColor { background-color: #313B79; }
<div style="background-color:#313B79">Inner text</div>
This div background color is #313B79.
.myBorderColor { border: 1px solid #313B79; }
<div style="border:3px solid #313B79">Div</div>
This div border color is #313B79.
.myOpacity80 { color: #313B79; opacity: 0.8; }
<p style="color:#313B79;opacity:0.8;">80%</p>
Text with #313B79 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #313B79;}
<p style="text-shadow: 3px 3px 1px #313B79">Text here.</p>
This text has shadow with #313B79 color.
.textShadow {text-shadow: 3px 3px 1px #313B79, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #313B79, 5px 5px 20px red">Text here.</p>
This text has shadow with #313B79 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#313B79, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#313B79, Direction=45, Strength=4)">Text</p>
This text has shadow with #313B79 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #313B79; -webkit-box-shadow: 1px 1px 3px 2px #313B79; box-shadow: 1px 1px 3px 2px #313B79; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #313B79; -webkit-box-shadow: 1px 1px 3px 2px #313B79; box-shadow:1px 1px 3px 2px #313B79;">
Div content here</div>
This text has color #313B79 on black background.
This text has color #313B79 on white background.
This text has black color on #313B79 background.
This text has white color on #313B79 background.