HEX: #51597C
RGB: (81,89,124)
#51597C contains red, green and blue colors in about the same proportion. Web safe color of #51597C is #666666 (or #666).
#51597C color RGB value is (81,89,124).
RGB: (81,89,124) (32%,35%,49%)
R 81 of 255 = 32%
G 89 of 255 = 35%
B 124 of 255 = 49%
R + G + B ~ 39%. #51597C is quite dark color.
R + G + B =
81 + 89 + 124 = 294 (100%)
R 81 of 294 ~ 27.55%
G 89 of 294 ~ 30.27%
B 124 of 294 ~ 42.18%
#51597C color CMYK value is (35,28,0,51).
CMYK: (35,28,0,51) C35M28Y0K51 (35%,28%,0%,51%) (0.35/0.28/0.00/0.51)
51 | 59 | 7C | |
---|---|---|---|
RGB | 81 | 89 | 124 |
HSL | 229° | 20.98% | 40.20% |
HSB/HSV | 229° | 34.68% | 48.63% |
CMYK | 34.68% | 28.23% | 0.00% |
51.37% |
HEX | 51 | 59 | 7C |
Decimal | 81 | 89 | 124 |
Binary | 1010001 | 1011001 | 1111100 |
Octal | 121 | 131 | 174 |
Examples of css and html codes for elements with #51597C color. Also use rgb(81,89,124) instead hex code.
.myTextColor { color: #51597C; }
<p style="color:#51597C">This sample text font color is #51597C.</p>
This text font color is #51597C.
.myBgColor { background-color: #51597C; }
<div style="background-color:#51597C">Inner text</div>
This div background color is #51597C.
.myBorderColor { border: 1px solid #51597C; }
<div style="border:3px solid #51597C">Div</div>
This div border color is #51597C.
.myOpacity80 { color: #51597C; opacity: 0.8; }
<p style="color:#51597C;opacity:0.8;">80%</p>
Text with #51597C color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #51597C;}
<p style="text-shadow: 3px 3px 1px #51597C">Text here.</p>
This text has shadow with #51597C color.
.textShadow {text-shadow: 3px 3px 1px #51597C, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #51597C, 5px 5px 20px red">Text here.</p>
This text has shadow with #51597C primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#51597C, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#51597C, Direction=45, Strength=4)">Text</p>
This text has shadow with #51597C and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #51597C; -webkit-box-shadow: 1px 1px 3px 2px #51597C; box-shadow: 1px 1px 3px 2px #51597C; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #51597C; -webkit-box-shadow: 1px 1px 3px 2px #51597C; box-shadow:1px 1px 3px 2px #51597C;">
Div content here</div>
This text has color #51597C on black background.
This text has color #51597C on white background.
This text has black color on #51597C background.
This text has white color on #51597C background.