HEX: #51649D
RGB: (81,100,157)
#51649D contains mainly green and blue colors. Web safe color of #51649D is #666699 (or #669).
#51649D color RGB value is (81,100,157).
RGB: (81,100,157) (32%,39%,62%)
R 81 of 255 = 32%
G 100 of 255 = 39%
B 157 of 255 = 62%
R + G + B ~ 44%. #51649D is middle color (not dark and not light).
R + G + B =
81 + 100 + 157 = 338 (100%)
R 81 of 338 ~ 23.96%
G 100 of 338 ~ 29.59%
B 157 of 338 ~ 46.45%
#51649D color CMYK value is (48,36,0,38).
CMYK: (48,36,0,38) C48M36Y0K38 (48%,36%,0%,38%) (0.48/0.36/0.00/0.38)
51 | 64 | 9D | |
---|---|---|---|
RGB | 81 | 100 | 157 |
HSL | 225° | 31.93% | 46.67% |
HSB/HSV | 225° | 48.41% | 61.57% |
CMYK | 48.41% | 36.31% | 0.00% |
38.43% |
HEX | 51 | 64 | 9D |
Decimal | 81 | 100 | 157 |
Binary | 1010001 | 1100100 | 10011101 |
Octal | 121 | 144 | 235 |
Examples of css and html codes for elements with #51649D color. Also use rgb(81,100,157) instead hex code.
.myTextColor { color: #51649D; }
<p style="color:#51649D">This sample text font color is #51649D.</p>
This text font color is #51649D.
.myBgColor { background-color: #51649D; }
<div style="background-color:#51649D">Inner text</div>
This div background color is #51649D.
.myBorderColor { border: 1px solid #51649D; }
<div style="border:3px solid #51649D">Div</div>
This div border color is #51649D.
.myOpacity80 { color: #51649D; opacity: 0.8; }
<p style="color:#51649D;opacity:0.8;">80%</p>
Text with #51649D color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #51649D;}
<p style="text-shadow: 3px 3px 1px #51649D">Text here.</p>
This text has shadow with #51649D color.
.textShadow {text-shadow: 3px 3px 1px #51649D, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #51649D, 5px 5px 20px red">Text here.</p>
This text has shadow with #51649D primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#51649D, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#51649D, Direction=45, Strength=4)">Text</p>
This text has shadow with #51649D and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #51649D; -webkit-box-shadow: 1px 1px 3px 2px #51649D; box-shadow: 1px 1px 3px 2px #51649D; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #51649D; -webkit-box-shadow: 1px 1px 3px 2px #51649D; box-shadow:1px 1px 3px 2px #51649D;">
Div content here</div>
This text has color #51649D on black background.
This text has color #51649D on white background.
This text has black color on #51649D background.
This text has white color on #51649D background.