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