HEX: #304A82
RGB: (48,74,130)
#304A82 contains mainly green and blue colors. Web safe color of #304A82 is #333399 (or #339).
#304A82 color RGB value is (48,74,130).
RGB: (48,74,130) (19%,29%,51%)
R 48 of 255 = 19%
G 74 of 255 = 29%
B 130 of 255 = 51%
R + G + B ~ 33%. #304A82 is quite dark color.
R + G + B =
48 + 74 + 130 = 252 (100%)
R 48 of 252 ~ 19.05%
G 74 of 252 ~ 29.37%
B 130 of 252 ~ 51.59%
#304A82 color CMYK value is (63,43,0,49).
CMYK: (63,43,0,49) C63M43Y0K49 (63%,43%,0%,49%) (0.63/0.43/0.00/0.49)
30 | 4A | 82 | |
---|---|---|---|
RGB | 48 | 74 | 130 |
HSL | 221° | 46.07% | 34.90% |
HSB/HSV | 221° | 63.08% | 50.98% |
CMYK | 63.08% | 43.08% | 0.00% |
49.02% |
HEX | 30 | 4A | 82 |
Decimal | 48 | 74 | 130 |
Binary | 110000 | 1001010 | 10000010 |
Octal | 60 | 112 | 202 |
Examples of css and html codes for elements with #304A82 color. Also use rgb(48,74,130) instead hex code.
.myTextColor { color: #304A82; }
<p style="color:#304A82">This sample text font color is #304A82.</p>
This text font color is #304A82.
.myBgColor { background-color: #304A82; }
<div style="background-color:#304A82">Inner text</div>
This div background color is #304A82.
.myBorderColor { border: 1px solid #304A82; }
<div style="border:3px solid #304A82">Div</div>
This div border color is #304A82.
.myOpacity80 { color: #304A82; opacity: 0.8; }
<p style="color:#304A82;opacity:0.8;">80%</p>
Text with #304A82 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #304A82;}
<p style="text-shadow: 3px 3px 1px #304A82">Text here.</p>
This text has shadow with #304A82 color.
.textShadow {text-shadow: 3px 3px 1px #304A82, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #304A82, 5px 5px 20px red">Text here.</p>
This text has shadow with #304A82 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#304A82, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#304A82, Direction=45, Strength=4)">Text</p>
This text has shadow with #304A82 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #304A82; -webkit-box-shadow: 1px 1px 3px 2px #304A82; box-shadow: 1px 1px 3px 2px #304A82; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #304A82; -webkit-box-shadow: 1px 1px 3px 2px #304A82; box-shadow:1px 1px 3px 2px #304A82;">
Div content here</div>
This text has color #304A82 on black background.
This text has color #304A82 on white background.
This text has black color on #304A82 background.
This text has white color on #304A82 background.