HEX: #2A498D
RGB: (42,73,141)
#2A498D contains mainly blue color. Web safe color of #2A498D is #333399 (or #339).
#2A498D color RGB value is (42,73,141).
RGB: (42,73,141) (16%,29%,55%)
R 42 of 255 = 16%
G 73 of 255 = 29%
B 141 of 255 = 55%
R + G + B ~ 33%. #2A498D is quite dark color.
R + G + B =
42 + 73 + 141 = 256 (100%)
R 42 of 256 ~ 16.41%
G 73 of 256 ~ 28.52%
B 141 of 256 ~ 55.08%
#2A498D color CMYK value is (70,48,0,45).
CMYK: (70,48,0,45) C70M48Y0K45 (70%,48%,0%,45%) (0.70/0.48/0.00/0.45)
2A | 49 | 8D | |
---|---|---|---|
RGB | 42 | 73 | 141 |
HSL | 221° | 54.10% | 35.88% |
HSB/HSV | 221° | 70.21% | 55.29% |
CMYK | 70.21% | 48.23% | 0.00% |
44.71% |
HEX | 2A | 49 | 8D |
Decimal | 42 | 73 | 141 |
Binary | 101010 | 1001001 | 10001101 |
Octal | 52 | 111 | 215 |
Examples of css and html codes for elements with #2A498D color. Also use rgb(42,73,141) instead hex code.
.myTextColor { color: #2A498D; }
<p style="color:#2A498D">This sample text font color is #2A498D.</p>
This text font color is #2A498D.
.myBgColor { background-color: #2A498D; }
<div style="background-color:#2A498D">Inner text</div>
This div background color is #2A498D.
.myBorderColor { border: 1px solid #2A498D; }
<div style="border:3px solid #2A498D">Div</div>
This div border color is #2A498D.
.myOpacity80 { color: #2A498D; opacity: 0.8; }
<p style="color:#2A498D;opacity:0.8;">80%</p>
Text with #2A498D color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #2A498D;}
<p style="text-shadow: 3px 3px 1px #2A498D">Text here.</p>
This text has shadow with #2A498D color.
.textShadow {text-shadow: 3px 3px 1px #2A498D, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #2A498D, 5px 5px 20px red">Text here.</p>
This text has shadow with #2A498D primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#2A498D, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#2A498D, Direction=45, Strength=4)">Text</p>
This text has shadow with #2A498D and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #2A498D; -webkit-box-shadow: 1px 1px 3px 2px #2A498D; box-shadow: 1px 1px 3px 2px #2A498D; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #2A498D; -webkit-box-shadow: 1px 1px 3px 2px #2A498D; box-shadow:1px 1px 3px 2px #2A498D;">
Div content here</div>
This text has color #2A498D on black background.
This text has color #2A498D on white background.
This text has black color on #2A498D background.
This text has white color on #2A498D background.