HEX: #505888
RGB: (80,88,136)
#505888 contains red, green and blue colors in about the same proportion. Web safe color of #505888 is #666699 (or #669).
#505888 color RGB value is (80,88,136).
RGB: (80,88,136) (31%,35%,53%)
R 80 of 255 = 31%
G 88 of 255 = 35%
B 136 of 255 = 53%
R + G + B ~ 40%. #505888 is middle color (not dark and not light).
R + G + B =
80 + 88 + 136 = 304 (100%)
R 80 of 304 ~ 26.32%
G 88 of 304 ~ 28.95%
B 136 of 304 ~ 44.74%
#505888 color CMYK value is (41,35,0,47).
CMYK: (41,35,0,47) C41M35Y0K47 (41%,35%,0%,47%) (0.41/0.35/0.00/0.47)
50 | 58 | 88 | |
---|---|---|---|
RGB | 80 | 88 | 136 |
HSL | 231° | 25.93% | 42.35% |
HSB/HSV | 231° | 41.18% | 53.33% |
CMYK | 41.18% | 35.29% | 0.00% |
46.67% |
HEX | 50 | 58 | 88 |
Decimal | 80 | 88 | 136 |
Binary | 1010000 | 1011000 | 10001000 |
Octal | 120 | 130 | 210 |
Examples of css and html codes for elements with #505888 color. Also use rgb(80,88,136) instead hex code.
.myTextColor { color: #505888; }
<p style="color:#505888">This sample text font color is #505888.</p>
This text font color is #505888.
.myBgColor { background-color: #505888; }
<div style="background-color:#505888">Inner text</div>
This div background color is #505888.
.myBorderColor { border: 1px solid #505888; }
<div style="border:3px solid #505888">Div</div>
This div border color is #505888.
.myOpacity80 { color: #505888; opacity: 0.8; }
<p style="color:#505888;opacity:0.8;">80%</p>
Text with #505888 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #505888;}
<p style="text-shadow: 3px 3px 1px #505888">Text here.</p>
This text has shadow with #505888 color.
.textShadow {text-shadow: 3px 3px 1px #505888, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #505888, 5px 5px 20px red">Text here.</p>
This text has shadow with #505888 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#505888, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#505888, Direction=45, Strength=4)">Text</p>
This text has shadow with #505888 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #505888; -webkit-box-shadow: 1px 1px 3px 2px #505888; box-shadow: 1px 1px 3px 2px #505888; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #505888; -webkit-box-shadow: 1px 1px 3px 2px #505888; box-shadow:1px 1px 3px 2px #505888;">
Div content here</div>
This text has color #505888 on black background.
This text has color #505888 on white background.
This text has black color on #505888 background.
This text has white color on #505888 background.