HEX: #4A509B
RGB: (74,80,155)
#4A509B contains mainly blue color. Web safe color of #4A509B is #336699 (or #369).
#4A509B color RGB value is (74,80,155).
RGB: (74,80,155) (29%,31%,61%)
R 74 of 255 = 29%
G 80 of 255 = 31%
B 155 of 255 = 61%
R + G + B ~ 40%. #4A509B is middle color (not dark and not light).
R + G + B =
74 + 80 + 155 = 309 (100%)
R 74 of 309 ~ 23.95%
G 80 of 309 ~ 25.89%
B 155 of 309 ~ 50.16%
#4A509B color CMYK value is (52,48,0,39).
CMYK: (52,48,0,39) C52M48Y0K39 (52%,48%,0%,39%) (0.52/0.48/0.00/0.39)
4A | 50 | 9B | |
---|---|---|---|
RGB | 74 | 80 | 155 |
HSL | 236° | 35.37% | 44.90% |
HSB/HSV | 236° | 52.26% | 60.78% |
CMYK | 52.26% | 48.39% | 0.00% |
39.22% |
HEX | 4A | 50 | 9B |
Decimal | 74 | 80 | 155 |
Binary | 1001010 | 1010000 | 10011011 |
Octal | 112 | 120 | 233 |
Examples of css and html codes for elements with #4A509B color. Also use rgb(74,80,155) instead hex code.
.myTextColor { color: #4A509B; }
<p style="color:#4A509B">This sample text font color is #4A509B.</p>
This text font color is #4A509B.
.myBgColor { background-color: #4A509B; }
<div style="background-color:#4A509B">Inner text</div>
This div background color is #4A509B.
.myBorderColor { border: 1px solid #4A509B; }
<div style="border:3px solid #4A509B">Div</div>
This div border color is #4A509B.
.myOpacity80 { color: #4A509B; opacity: 0.8; }
<p style="color:#4A509B;opacity:0.8;">80%</p>
Text with #4A509B color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #4A509B;}
<p style="text-shadow: 3px 3px 1px #4A509B">Text here.</p>
This text has shadow with #4A509B color.
.textShadow {text-shadow: 3px 3px 1px #4A509B, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #4A509B, 5px 5px 20px red">Text here.</p>
This text has shadow with #4A509B primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#4A509B, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#4A509B, Direction=45, Strength=4)">Text</p>
This text has shadow with #4A509B and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #4A509B; -webkit-box-shadow: 1px 1px 3px 2px #4A509B; box-shadow: 1px 1px 3px 2px #4A509B; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #4A509B; -webkit-box-shadow: 1px 1px 3px 2px #4A509B; box-shadow:1px 1px 3px 2px #4A509B;">
Div content here</div>
This text has color #4A509B on black background.
This text has color #4A509B on white background.
This text has black color on #4A509B background.
This text has white color on #4A509B background.