HEX: #514687
RGB: (81,70,135)
#514687 contains mainly red and blue colors. Web safe color of #514687 is #663399 (or #639).
#514687 color RGB value is (81,70,135).
RGB: (81,70,135) (32%,27%,53%)
R 81 of 255 = 32%
G 70 of 255 = 27%
B 135 of 255 = 53%
R + G + B ~ 37%. #514687 is quite dark color.
R + G + B =
81 + 70 + 135 = 286 (100%)
R 81 of 286 ~ 28.32%
G 70 of 286 ~ 24.48%
B 135 of 286 ~ 47.2%
#514687 color CMYK value is (40,48,0,47).
CMYK: (40,48,0,47) C40M48Y0K47 (40%,48%,0%,47%) (0.40/0.48/0.00/0.47)
51 | 46 | 87 | |
---|---|---|---|
RGB | 81 | 70 | 135 |
HSL | 250° | 31.71% | 40.20% |
HSB/HSV | 250° | 48.15% | 52.94% |
CMYK | 40.00% | 48.15% | 0.00% |
47.06% |
HEX | 51 | 46 | 87 |
Decimal | 81 | 70 | 135 |
Binary | 1010001 | 1000110 | 10000111 |
Octal | 121 | 106 | 207 |
Examples of css and html codes for elements with #514687 color. Also use rgb(81,70,135) instead hex code.
.myTextColor { color: #514687; }
<p style="color:#514687">This sample text font color is #514687.</p>
This text font color is #514687.
.myBgColor { background-color: #514687; }
<div style="background-color:#514687">Inner text</div>
This div background color is #514687.
.myBorderColor { border: 1px solid #514687; }
<div style="border:3px solid #514687">Div</div>
This div border color is #514687.
.myOpacity80 { color: #514687; opacity: 0.8; }
<p style="color:#514687;opacity:0.8;">80%</p>
Text with #514687 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #514687;}
<p style="text-shadow: 3px 3px 1px #514687">Text here.</p>
This text has shadow with #514687 color.
.textShadow {text-shadow: 3px 3px 1px #514687, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #514687, 5px 5px 20px red">Text here.</p>
This text has shadow with #514687 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#514687, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#514687, Direction=45, Strength=4)">Text</p>
This text has shadow with #514687 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #514687; -webkit-box-shadow: 1px 1px 3px 2px #514687; box-shadow: 1px 1px 3px 2px #514687; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #514687; -webkit-box-shadow: 1px 1px 3px 2px #514687; box-shadow:1px 1px 3px 2px #514687;">
Div content here</div>
This text has color #514687 on black background.
This text has color #514687 on white background.
This text has black color on #514687 background.
This text has white color on #514687 background.