HEX: #335366
RGB: (51,83,102)
#335366 contains red, green and blue colors in about the same proportion. Web safe color of #335366 is #336666 (or #366).
#335366 color RGB value is (51,83,102).
RGB: (51,83,102) (20%,33%,40%)
R 51 of 255 = 20%
G 83 of 255 = 33%
B 102 of 255 = 40%
R + G + B ~ 31%. #335366 is quite dark color.
R + G + B =
51 + 83 + 102 = 236 (100%)
R 51 of 236 ~ 21.61%
G 83 of 236 ~ 35.17%
B 102 of 236 ~ 43.22%
#335366 color CMYK value is (50,19,0,60).
CMYK: (50,19,0,60) C50M19Y0K60 (50%,19%,0%,60%) (0.50/0.19/0.00/0.60)
33 | 53 | 66 | |
---|---|---|---|
RGB | 51 | 83 | 102 |
HSL | 202° | 33.33% | 30.00% |
HSB/HSV | 202° | 50.00% | 40.00% |
CMYK | 50.00% | 18.63% | 0.00% |
60.00% |
HEX | 33 | 53 | 66 |
Decimal | 51 | 83 | 102 |
Binary | 110011 | 1010011 | 1100110 |
Octal | 63 | 123 | 146 |
Examples of css and html codes for elements with #335366 color. Also use rgb(51,83,102) instead hex code.
.myTextColor { color: #335366; }
<p style="color:#335366">This sample text font color is #335366.</p>
This text font color is #335366.
.myBgColor { background-color: #335366; }
<div style="background-color:#335366">Inner text</div>
This div background color is #335366.
.myBorderColor { border: 1px solid #335366; }
<div style="border:3px solid #335366">Div</div>
This div border color is #335366.
.myOpacity80 { color: #335366; opacity: 0.8; }
<p style="color:#335366;opacity:0.8;">80%</p>
Text with #335366 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #335366;}
<p style="text-shadow: 3px 3px 1px #335366">Text here.</p>
This text has shadow with #335366 color.
.textShadow {text-shadow: 3px 3px 1px #335366, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #335366, 5px 5px 20px red">Text here.</p>
This text has shadow with #335366 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#335366, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#335366, Direction=45, Strength=4)">Text</p>
This text has shadow with #335366 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #335366; -webkit-box-shadow: 1px 1px 3px 2px #335366; box-shadow: 1px 1px 3px 2px #335366; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #335366; -webkit-box-shadow: 1px 1px 3px 2px #335366; box-shadow:1px 1px 3px 2px #335366;">
Div content here</div>
This text has color #335366 on black background.
This text has color #335366 on white background.
This text has black color on #335366 background.
This text has white color on #335366 background.