HEX: #51588D
RGB: (81,88,141)
#51588D contains mainly green and blue colors. Web safe color of #51588D is #666699 (or #669).
#51588D color RGB value is (81,88,141).
RGB: (81,88,141) (32%,35%,55%)
R 81 of 255 = 32%
G 88 of 255 = 35%
B 141 of 255 = 55%
R + G + B ~ 41%. #51588D is middle color (not dark and not light).
R + G + B =
81 + 88 + 141 = 310 (100%)
R 81 of 310 ~ 26.13%
G 88 of 310 ~ 28.39%
B 141 of 310 ~ 45.48%
#51588D color CMYK value is (43,38,0,45).
CMYK: (43,38,0,45) C43M38Y0K45 (43%,38%,0%,45%) (0.43/0.38/0.00/0.45)
51 | 58 | 8D | |
---|---|---|---|
RGB | 81 | 88 | 141 |
HSL | 233° | 27.03% | 43.53% |
HSB/HSV | 233° | 42.55% | 55.29% |
CMYK | 42.55% | 37.59% | 0.00% |
44.71% |
HEX | 51 | 58 | 8D |
Decimal | 81 | 88 | 141 |
Binary | 1010001 | 1011000 | 10001101 |
Octal | 121 | 130 | 215 |
Examples of css and html codes for elements with #51588D color. Also use rgb(81,88,141) instead hex code.
.myTextColor { color: #51588D; }
<p style="color:#51588D">This sample text font color is #51588D.</p>
This text font color is #51588D.
.myBgColor { background-color: #51588D; }
<div style="background-color:#51588D">Inner text</div>
This div background color is #51588D.
.myBorderColor { border: 1px solid #51588D; }
<div style="border:3px solid #51588D">Div</div>
This div border color is #51588D.
.myOpacity80 { color: #51588D; opacity: 0.8; }
<p style="color:#51588D;opacity:0.8;">80%</p>
Text with #51588D color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #51588D;}
<p style="text-shadow: 3px 3px 1px #51588D">Text here.</p>
This text has shadow with #51588D color.
.textShadow {text-shadow: 3px 3px 1px #51588D, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #51588D, 5px 5px 20px red">Text here.</p>
This text has shadow with #51588D primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#51588D, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#51588D, Direction=45, Strength=4)">Text</p>
This text has shadow with #51588D and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #51588D; -webkit-box-shadow: 1px 1px 3px 2px #51588D; box-shadow: 1px 1px 3px 2px #51588D; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #51588D; -webkit-box-shadow: 1px 1px 3px 2px #51588D; box-shadow:1px 1px 3px 2px #51588D;">
Div content here</div>
This text has color #51588D on black background.
This text has color #51588D on white background.
This text has black color on #51588D background.
This text has white color on #51588D background.