HEX: #2E57AB
RGB: (46,87,171)
#2E57AB contains mainly blue color. Web safe color of #2E57AB is #336699 (or #369).
#2E57AB color RGB value is (46,87,171).
RGB: (46,87,171) (18%,34%,67%)
R 46 of 255 = 18%
G 87 of 255 = 34%
B 171 of 255 = 67%
R + G + B ~ 40%. #2E57AB is middle color (not dark and not light).
R + G + B =
46 + 87 + 171 = 304 (100%)
R 46 of 304 ~ 15.13%
G 87 of 304 ~ 28.62%
B 171 of 304 ~ 56.25%
#2E57AB color CMYK value is (73,49,0,33).
CMYK: (73,49,0,33) C73M49Y0K33 (73%,49%,0%,33%) (0.73/0.49/0.00/0.33)
2E | 57 | AB | |
---|---|---|---|
RGB | 46 | 87 | 171 |
HSL | 220° | 57.60% | 42.55% |
HSB/HSV | 220° | 73.10% | 67.06% |
CMYK | 73.10% | 49.12% | 0.00% |
32.94% |
HEX | 2E | 57 | AB |
Decimal | 46 | 87 | 171 |
Binary | 101110 | 1010111 | 10101011 |
Octal | 56 | 127 | 253 |
Examples of css and html codes for elements with #2E57AB color. Also use rgb(46,87,171) instead hex code.
.myTextColor { color: #2E57AB; }
<p style="color:#2E57AB">This sample text font color is #2E57AB.</p>
This text font color is #2E57AB.
.myBgColor { background-color: #2E57AB; }
<div style="background-color:#2E57AB">Inner text</div>
This div background color is #2E57AB.
.myBorderColor { border: 1px solid #2E57AB; }
<div style="border:3px solid #2E57AB">Div</div>
This div border color is #2E57AB.
.myOpacity80 { color: #2E57AB; opacity: 0.8; }
<p style="color:#2E57AB;opacity:0.8;">80%</p>
Text with #2E57AB color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #2E57AB;}
<p style="text-shadow: 3px 3px 1px #2E57AB">Text here.</p>
This text has shadow with #2E57AB color.
.textShadow {text-shadow: 3px 3px 1px #2E57AB, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #2E57AB, 5px 5px 20px red">Text here.</p>
This text has shadow with #2E57AB primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#2E57AB, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#2E57AB, Direction=45, Strength=4)">Text</p>
This text has shadow with #2E57AB and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #2E57AB; -webkit-box-shadow: 1px 1px 3px 2px #2E57AB; box-shadow: 1px 1px 3px 2px #2E57AB; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #2E57AB; -webkit-box-shadow: 1px 1px 3px 2px #2E57AB; box-shadow:1px 1px 3px 2px #2E57AB;">
Div content here</div>
This text has color #2E57AB on black background.
This text has color #2E57AB on white background.
This text has black color on #2E57AB background.
This text has white color on #2E57AB background.