HEX: #31376D
RGB: (49,55,109)
#31376D contains mainly green and blue colors. Web safe color of #31376D is #333366 (or #336).
#31376D color RGB value is (49,55,109).
RGB: (49,55,109) (19%,22%,43%)
R 49 of 255 = 19%
G 55 of 255 = 22%
B 109 of 255 = 43%
R + G + B ~ 28%. #31376D is quite dark color.
R + G + B =
49 + 55 + 109 = 213 (100%)
R 49 of 213 ~ 23%
G 55 of 213 ~ 25.82%
B 109 of 213 ~ 51.17%
#31376D color CMYK value is (55,50,0,57).
CMYK: (55,50,0,57) C55M50Y0K57 (55%,50%,0%,57%) (0.55/0.50/0.00/0.57)
31 | 37 | 6D | |
---|---|---|---|
RGB | 49 | 55 | 109 |
HSL | 234° | 37.97% | 30.98% |
HSB/HSV | 234° | 55.05% | 42.75% |
CMYK | 55.05% | 49.54% | 0.00% |
57.25% |
HEX | 31 | 37 | 6D |
Decimal | 49 | 55 | 109 |
Binary | 110001 | 110111 | 1101101 |
Octal | 61 | 67 | 155 |
Examples of css and html codes for elements with #31376D color. Also use rgb(49,55,109) instead hex code.
.myTextColor { color: #31376D; }
<p style="color:#31376D">This sample text font color is #31376D.</p>
This text font color is #31376D.
.myBgColor { background-color: #31376D; }
<div style="background-color:#31376D">Inner text</div>
This div background color is #31376D.
.myBorderColor { border: 1px solid #31376D; }
<div style="border:3px solid #31376D">Div</div>
This div border color is #31376D.
.myOpacity80 { color: #31376D; opacity: 0.8; }
<p style="color:#31376D;opacity:0.8;">80%</p>
Text with #31376D color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #31376D;}
<p style="text-shadow: 3px 3px 1px #31376D">Text here.</p>
This text has shadow with #31376D color.
.textShadow {text-shadow: 3px 3px 1px #31376D, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #31376D, 5px 5px 20px red">Text here.</p>
This text has shadow with #31376D primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#31376D, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#31376D, Direction=45, Strength=4)">Text</p>
This text has shadow with #31376D and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #31376D; -webkit-box-shadow: 1px 1px 3px 2px #31376D; box-shadow: 1px 1px 3px 2px #31376D; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #31376D; -webkit-box-shadow: 1px 1px 3px 2px #31376D; box-shadow:1px 1px 3px 2px #31376D;">
Div content here</div>
This text has color #31376D on black background.
This text has color #31376D on white background.
This text has black color on #31376D background.
This text has white color on #31376D background.