HEX: #51429C
RGB: (81,66,156)
#51429C contains mainly blue color. Web safe color of #51429C is #663399 (or #639).
#51429C color RGB value is (81,66,156).
RGB: (81,66,156) (32%,26%,61%)
R 81 of 255 = 32%
G 66 of 255 = 26%
B 156 of 255 = 61%
R + G + B ~ 40%. #51429C is middle color (not dark and not light).
R + G + B =
81 + 66 + 156 = 303 (100%)
R 81 of 303 ~ 26.73%
G 66 of 303 ~ 21.78%
B 156 of 303 ~ 51.49%
#51429C color CMYK value is (48,58,0,39).
CMYK: (48,58,0,39) C48M58Y0K39 (48%,58%,0%,39%) (0.48/0.58/0.00/0.39)
51 | 42 | 9C | |
---|---|---|---|
RGB | 81 | 66 | 156 |
HSL | 250° | 40.54% | 43.53% |
HSB/HSV | 250° | 57.69% | 61.18% |
CMYK | 48.08% | 57.69% | 0.00% |
38.82% |
HEX | 51 | 42 | 9C |
Decimal | 81 | 66 | 156 |
Binary | 1010001 | 1000010 | 10011100 |
Octal | 121 | 102 | 234 |
Examples of css and html codes for elements with #51429C color. Also use rgb(81,66,156) instead hex code.
.myTextColor { color: #51429C; }
<p style="color:#51429C">This sample text font color is #51429C.</p>
This text font color is #51429C.
.myBgColor { background-color: #51429C; }
<div style="background-color:#51429C">Inner text</div>
This div background color is #51429C.
.myBorderColor { border: 1px solid #51429C; }
<div style="border:3px solid #51429C">Div</div>
This div border color is #51429C.
.myOpacity80 { color: #51429C; opacity: 0.8; }
<p style="color:#51429C;opacity:0.8;">80%</p>
Text with #51429C color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #51429C;}
<p style="text-shadow: 3px 3px 1px #51429C">Text here.</p>
This text has shadow with #51429C color.
.textShadow {text-shadow: 3px 3px 1px #51429C, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #51429C, 5px 5px 20px red">Text here.</p>
This text has shadow with #51429C primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#51429C, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#51429C, Direction=45, Strength=4)">Text</p>
This text has shadow with #51429C and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #51429C; -webkit-box-shadow: 1px 1px 3px 2px #51429C; box-shadow: 1px 1px 3px 2px #51429C; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #51429C; -webkit-box-shadow: 1px 1px 3px 2px #51429C; box-shadow:1px 1px 3px 2px #51429C;">
Div content here</div>
This text has color #51429C on black background.
This text has color #51429C on white background.
This text has black color on #51429C background.
This text has white color on #51429C background.