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