HEX: #311B6F
RGB: (49,27,111)
#311B6F contains mainly blue color. Web safe color of #311B6F is #333366 (or #336).
#311B6F color RGB value is (49,27,111).
RGB: (49,27,111) (19%,11%,44%)
R 49 of 255 = 19%
G 27 of 255 = 11%
B 111 of 255 = 44%
R + G + B ~ 25%. #311B6F is quite dark color.
R + G + B =
49 + 27 + 111 = 187 (100%)
R 49 of 187 ~ 26.2%
G 27 of 187 ~ 14.44%
B 111 of 187 ~ 59.36%
#311B6F color CMYK value is (56,76,0,56).
CMYK: (56,76,0,56) C56M76Y0K56 (56%,76%,0%,56%) (0.56/0.76/0.00/0.56)
31 | 1B | 6F | |
---|---|---|---|
RGB | 49 | 27 | 111 |
HSL | 256° | 60.87% | 27.06% |
HSB/HSV | 256° | 75.68% | 43.53% |
CMYK | 55.86% | 75.68% | 0.00% |
56.47% |
HEX | 31 | 1B | 6F |
Decimal | 49 | 27 | 111 |
Binary | 110001 | 11011 | 1101111 |
Octal | 61 | 33 | 157 |
Examples of css and html codes for elements with #311B6F color. Also use rgb(49,27,111) instead hex code.
.myTextColor { color: #311B6F; }
<p style="color:#311B6F">This sample text font color is #311B6F.</p>
This text font color is #311B6F.
.myBgColor { background-color: #311B6F; }
<div style="background-color:#311B6F">Inner text</div>
This div background color is #311B6F.
.myBorderColor { border: 1px solid #311B6F; }
<div style="border:3px solid #311B6F">Div</div>
This div border color is #311B6F.
.myOpacity80 { color: #311B6F; opacity: 0.8; }
<p style="color:#311B6F;opacity:0.8;">80%</p>
Text with #311B6F color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #311B6F;}
<p style="text-shadow: 3px 3px 1px #311B6F">Text here.</p>
This text has shadow with #311B6F color.
.textShadow {text-shadow: 3px 3px 1px #311B6F, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #311B6F, 5px 5px 20px red">Text here.</p>
This text has shadow with #311B6F primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#311B6F, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#311B6F, Direction=45, Strength=4)">Text</p>
This text has shadow with #311B6F and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #311B6F; -webkit-box-shadow: 1px 1px 3px 2px #311B6F; box-shadow: 1px 1px 3px 2px #311B6F; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #311B6F; -webkit-box-shadow: 1px 1px 3px 2px #311B6F; box-shadow:1px 1px 3px 2px #311B6F;">
Div content here</div>
This text has color #311B6F on black background.
This text has color #311B6F on white background.
This text has black color on #311B6F background.
This text has white color on #311B6F background.