HEX: #311D6D
RGB: (49,29,109)
#311D6D contains mainly blue color. Web safe color of #311D6D is #333366 (or #336).
#311D6D color RGB value is (49,29,109).
RGB: (49,29,109) (19%,11%,43%)
R 49 of 255 = 19%
G 29 of 255 = 11%
B 109 of 255 = 43%
R + G + B ~ 24%. #311D6D is dark color.
R + G + B =
49 + 29 + 109 = 187 (100%)
R 49 of 187 ~ 26.2%
G 29 of 187 ~ 15.51%
B 109 of 187 ~ 58.29%
#311D6D color CMYK value is (55,73,0,57).
CMYK: (55,73,0,57) C55M73Y0K57 (55%,73%,0%,57%) (0.55/0.73/0.00/0.57)
31 | 1D | 6D | |
---|---|---|---|
RGB | 49 | 29 | 109 |
HSL | 255° | 57.97% | 27.06% |
HSB/HSV | 255° | 73.39% | 42.75% |
CMYK | 55.05% | 73.39% | 0.00% |
57.25% |
HEX | 31 | 1D | 6D |
Decimal | 49 | 29 | 109 |
Binary | 110001 | 11101 | 1101101 |
Octal | 61 | 35 | 155 |
Examples of css and html codes for elements with #311D6D color. Also use rgb(49,29,109) instead hex code.
.myTextColor { color: #311D6D; }
<p style="color:#311D6D">This sample text font color is #311D6D.</p>
This text font color is #311D6D.
.myBgColor { background-color: #311D6D; }
<div style="background-color:#311D6D">Inner text</div>
This div background color is #311D6D.
.myBorderColor { border: 1px solid #311D6D; }
<div style="border:3px solid #311D6D">Div</div>
This div border color is #311D6D.
.myOpacity80 { color: #311D6D; opacity: 0.8; }
<p style="color:#311D6D;opacity:0.8;">80%</p>
Text with #311D6D color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #311D6D;}
<p style="text-shadow: 3px 3px 1px #311D6D">Text here.</p>
This text has shadow with #311D6D color.
.textShadow {text-shadow: 3px 3px 1px #311D6D, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #311D6D, 5px 5px 20px red">Text here.</p>
This text has shadow with #311D6D primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#311D6D, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#311D6D, Direction=45, Strength=4)">Text</p>
This text has shadow with #311D6D and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #311D6D; -webkit-box-shadow: 1px 1px 3px 2px #311D6D; box-shadow: 1px 1px 3px 2px #311D6D; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #311D6D; -webkit-box-shadow: 1px 1px 3px 2px #311D6D; box-shadow:1px 1px 3px 2px #311D6D;">
Div content here</div>
This text has color #311D6D on black background.
This text has color #311D6D on white background.
This text has black color on #311D6D background.
This text has white color on #311D6D background.