HEX: #2E42AE
RGB: (46,66,174)
#2E42AE contains mainly blue color. Web safe color of #2E42AE is #333399 (or #339).
#2E42AE color RGB value is (46,66,174).
RGB: (46,66,174) (18%,26%,68%)
R 46 of 255 = 18%
G 66 of 255 = 26%
B 174 of 255 = 68%
R + G + B ~ 37%. #2E42AE is quite dark color.
R + G + B =
46 + 66 + 174 = 286 (100%)
R 46 of 286 ~ 16.08%
G 66 of 286 ~ 23.08%
B 174 of 286 ~ 60.84%
#2E42AE color CMYK value is (74,62,0,32).
CMYK: (74,62,0,32) C74M62Y0K32 (74%,62%,0%,32%) (0.74/0.62/0.00/0.32)
2E | 42 | AE | |
---|---|---|---|
RGB | 46 | 66 | 174 |
HSL | 231° | 58.18% | 43.14% |
HSB/HSV | 231° | 73.56% | 68.24% |
CMYK | 73.56% | 62.07% | 0.00% |
31.76% |
HEX | 2E | 42 | AE |
Decimal | 46 | 66 | 174 |
Binary | 101110 | 1000010 | 10101110 |
Octal | 56 | 102 | 256 |
Examples of css and html codes for elements with #2E42AE color. Also use rgb(46,66,174) instead hex code.
.myTextColor { color: #2E42AE; }
<p style="color:#2E42AE">This sample text font color is #2E42AE.</p>
This text font color is #2E42AE.
.myBgColor { background-color: #2E42AE; }
<div style="background-color:#2E42AE">Inner text</div>
This div background color is #2E42AE.
.myBorderColor { border: 1px solid #2E42AE; }
<div style="border:3px solid #2E42AE">Div</div>
This div border color is #2E42AE.
.myOpacity80 { color: #2E42AE; opacity: 0.8; }
<p style="color:#2E42AE;opacity:0.8;">80%</p>
Text with #2E42AE color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #2E42AE;}
<p style="text-shadow: 3px 3px 1px #2E42AE">Text here.</p>
This text has shadow with #2E42AE color.
.textShadow {text-shadow: 3px 3px 1px #2E42AE, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #2E42AE, 5px 5px 20px red">Text here.</p>
This text has shadow with #2E42AE primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#2E42AE, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#2E42AE, Direction=45, Strength=4)">Text</p>
This text has shadow with #2E42AE and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #2E42AE; -webkit-box-shadow: 1px 1px 3px 2px #2E42AE; box-shadow: 1px 1px 3px 2px #2E42AE; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #2E42AE; -webkit-box-shadow: 1px 1px 3px 2px #2E42AE; box-shadow:1px 1px 3px 2px #2E42AE;">
Div content here</div>
This text has color #2E42AE on black background.
This text has color #2E42AE on white background.
This text has black color on #2E42AE background.
This text has white color on #2E42AE background.