HEX: #304C8D
RGB: (48,76,141)
#304C8D contains mainly blue color. Web safe color of #304C8D is #333399 (or #339).
#304C8D color RGB value is (48,76,141).
RGB: (48,76,141) (19%,30%,55%)
R 48 of 255 = 19%
G 76 of 255 = 30%
B 141 of 255 = 55%
R + G + B ~ 35%. #304C8D is quite dark color.
R + G + B =
48 + 76 + 141 = 265 (100%)
R 48 of 265 ~ 18.11%
G 76 of 265 ~ 28.68%
B 141 of 265 ~ 53.21%
#304C8D color CMYK value is (66,46,0,45).
CMYK: (66,46,0,45) C66M46Y0K45 (66%,46%,0%,45%) (0.66/0.46/0.00/0.45)
30 | 4C | 8D | |
---|---|---|---|
RGB | 48 | 76 | 141 |
HSL | 222° | 49.21% | 37.06% |
HSB/HSV | 222° | 65.96% | 55.29% |
CMYK | 65.96% | 46.10% | 0.00% |
44.71% |
HEX | 30 | 4C | 8D |
Decimal | 48 | 76 | 141 |
Binary | 110000 | 1001100 | 10001101 |
Octal | 60 | 114 | 215 |
Examples of css and html codes for elements with #304C8D color. Also use rgb(48,76,141) instead hex code.
.myTextColor { color: #304C8D; }
<p style="color:#304C8D">This sample text font color is #304C8D.</p>
This text font color is #304C8D.
.myBgColor { background-color: #304C8D; }
<div style="background-color:#304C8D">Inner text</div>
This div background color is #304C8D.
.myBorderColor { border: 1px solid #304C8D; }
<div style="border:3px solid #304C8D">Div</div>
This div border color is #304C8D.
.myOpacity80 { color: #304C8D; opacity: 0.8; }
<p style="color:#304C8D;opacity:0.8;">80%</p>
Text with #304C8D color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #304C8D;}
<p style="text-shadow: 3px 3px 1px #304C8D">Text here.</p>
This text has shadow with #304C8D color.
.textShadow {text-shadow: 3px 3px 1px #304C8D, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #304C8D, 5px 5px 20px red">Text here.</p>
This text has shadow with #304C8D primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#304C8D, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#304C8D, Direction=45, Strength=4)">Text</p>
This text has shadow with #304C8D and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #304C8D; -webkit-box-shadow: 1px 1px 3px 2px #304C8D; box-shadow: 1px 1px 3px 2px #304C8D; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #304C8D; -webkit-box-shadow: 1px 1px 3px 2px #304C8D; box-shadow:1px 1px 3px 2px #304C8D;">
Div content here</div>
This text has color #304C8D on black background.
This text has color #304C8D on white background.
This text has black color on #304C8D background.
This text has white color on #304C8D background.