HEX: #2E8CEC
RGB: (46,140,236)
#2E8CEC contains mainly blue color. Web safe color of #2E8CEC is #3399FF (or #39F).
#2E8CEC color RGB value is (46,140,236).
RGB: (46,140,236) (18%,55%,93%)
R 46 of 255 = 18%
G 140 of 255 = 55%
B 236 of 255 = 93%
R + G + B ~ 55%. #2E8CEC is middle color (not dark and not light).
R + G + B =
46 + 140 + 236 = 422 (100%)
R 46 of 422 ~ 10.9%
G 140 of 422 ~ 33.18%
B 236 of 422 ~ 55.92%
#2E8CEC color CMYK value is (81,41,0,7).
CMYK: (81,41,0,7) C81M41Y0K7 (81%,41%,0%,7%) (0.81/0.41/0.00/0.07)
2E | 8C | EC | |
---|---|---|---|
RGB | 46 | 140 | 236 |
HSL | 210° | 83.33% | 55.29% |
HSB/HSV | 210° | 80.51% | 92.55% |
CMYK | 80.51% | 40.68% | 0.00% |
7.45% |
HEX | 2E | 8C | EC |
Decimal | 46 | 140 | 236 |
Binary | 101110 | 10001100 | 11101100 |
Octal | 56 | 214 | 354 |
Examples of css and html codes for elements with #2E8CEC color. Also use rgb(46,140,236) instead hex code.
.myTextColor { color: #2E8CEC; }
<p style="color:#2E8CEC">This sample text font color is #2E8CEC.</p>
This text font color is #2E8CEC.
.myBgColor { background-color: #2E8CEC; }
<div style="background-color:#2E8CEC">Inner text</div>
This div background color is #2E8CEC.
.myBorderColor { border: 1px solid #2E8CEC; }
<div style="border:3px solid #2E8CEC">Div</div>
This div border color is #2E8CEC.
.myOpacity80 { color: #2E8CEC; opacity: 0.8; }
<p style="color:#2E8CEC;opacity:0.8;">80%</p>
Text with #2E8CEC color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #2E8CEC;}
<p style="text-shadow: 3px 3px 1px #2E8CEC">Text here.</p>
This text has shadow with #2E8CEC color.
.textShadow {text-shadow: 3px 3px 1px #2E8CEC, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #2E8CEC, 5px 5px 20px red">Text here.</p>
This text has shadow with #2E8CEC primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#2E8CEC, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#2E8CEC, Direction=45, Strength=4)">Text</p>
This text has shadow with #2E8CEC and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #2E8CEC; -webkit-box-shadow: 1px 1px 3px 2px #2E8CEC; box-shadow: 1px 1px 3px 2px #2E8CEC; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #2E8CEC; -webkit-box-shadow: 1px 1px 3px 2px #2E8CEC; box-shadow:1px 1px 3px 2px #2E8CEC;">
Div content here</div>
This text has color #2E8CEC on black background.
This text has color #2E8CEC on white background.
This text has black color on #2E8CEC background.
This text has white color on #2E8CEC background.