HEX: #42488B
RGB: (66,72,139)
#42488B contains mainly blue color. Web safe color of #42488B is #333399 (or #339).
#42488B color RGB value is (66,72,139).
RGB: (66,72,139) (26%,28%,55%)
R 66 of 255 = 26%
G 72 of 255 = 28%
B 139 of 255 = 55%
R + G + B ~ 36%. #42488B is quite dark color.
R + G + B =
66 + 72 + 139 = 277 (100%)
R 66 of 277 ~ 23.83%
G 72 of 277 ~ 25.99%
B 139 of 277 ~ 50.18%
#42488B color CMYK value is (53,48,0,45).
CMYK: (53,48,0,45) C53M48Y0K45 (53%,48%,0%,45%) (0.53/0.48/0.00/0.45)
42 | 48 | 8B | |
---|---|---|---|
RGB | 66 | 72 | 139 |
HSL | 235° | 35.61% | 40.20% |
HSB/HSV | 235° | 52.52% | 54.51% |
CMYK | 52.52% | 48.20% | 0.00% |
45.49% |
HEX | 42 | 48 | 8B |
Decimal | 66 | 72 | 139 |
Binary | 1000010 | 1001000 | 10001011 |
Octal | 102 | 110 | 213 |
Examples of css and html codes for elements with #42488B color. Also use rgb(66,72,139) instead hex code.
.myTextColor { color: #42488B; }
<p style="color:#42488B">This sample text font color is #42488B.</p>
This text font color is #42488B.
.myBgColor { background-color: #42488B; }
<div style="background-color:#42488B">Inner text</div>
This div background color is #42488B.
.myBorderColor { border: 1px solid #42488B; }
<div style="border:3px solid #42488B">Div</div>
This div border color is #42488B.
.myOpacity80 { color: #42488B; opacity: 0.8; }
<p style="color:#42488B;opacity:0.8;">80%</p>
Text with #42488B color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #42488B;}
<p style="text-shadow: 3px 3px 1px #42488B">Text here.</p>
This text has shadow with #42488B color.
.textShadow {text-shadow: 3px 3px 1px #42488B, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #42488B, 5px 5px 20px red">Text here.</p>
This text has shadow with #42488B primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#42488B, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#42488B, Direction=45, Strength=4)">Text</p>
This text has shadow with #42488B and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #42488B; -webkit-box-shadow: 1px 1px 3px 2px #42488B; box-shadow: 1px 1px 3px 2px #42488B; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #42488B; -webkit-box-shadow: 1px 1px 3px 2px #42488B; box-shadow:1px 1px 3px 2px #42488B;">
Div content here</div>
This text has color #42488B on black background.
This text has color #42488B on white background.
This text has black color on #42488B background.
This text has white color on #42488B background.