HEX: #338ACC
RGB: (51,138,204)
#338ACC contains mainly blue color. Web safe color of #338ACC is #3399CC (or #39C).
#338ACC color RGB value is (51,138,204).
RGB: (51,138,204) (20%,54%,80%)
R 51 of 255 = 20%
G 138 of 255 = 54%
B 204 of 255 = 80%
R + G + B ~ 51%. #338ACC is middle color (not dark and not light).
R + G + B =
51 + 138 + 204 = 393 (100%)
R 51 of 393 ~ 12.98%
G 138 of 393 ~ 35.11%
B 204 of 393 ~ 51.91%
#338ACC color CMYK value is (75,32,0,20).
CMYK: (75,32,0,20) C75M32Y0K20 (75%,32%,0%,20%) (0.75/0.32/0.00/0.20)
33 | 8A | CC | |
---|---|---|---|
RGB | 51 | 138 | 204 |
HSL | 206° | 60.00% | 50.00% |
HSB/HSV | 206° | 75.00% | 80.00% |
CMYK | 75.00% | 32.35% | 0.00% |
20.00% |
HEX | 33 | 8A | CC |
Decimal | 51 | 138 | 204 |
Binary | 110011 | 10001010 | 11001100 |
Octal | 63 | 212 | 314 |
Examples of css and html codes for elements with #338ACC color. Also use rgb(51,138,204) instead hex code.
.myTextColor { color: #338ACC; }
<p style="color:#338ACC">This sample text font color is #338ACC.</p>
This text font color is #338ACC.
.myBgColor { background-color: #338ACC; }
<div style="background-color:#338ACC">Inner text</div>
This div background color is #338ACC.
.myBorderColor { border: 1px solid #338ACC; }
<div style="border:3px solid #338ACC">Div</div>
This div border color is #338ACC.
.myOpacity80 { color: #338ACC; opacity: 0.8; }
<p style="color:#338ACC;opacity:0.8;">80%</p>
Text with #338ACC color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #338ACC;}
<p style="text-shadow: 3px 3px 1px #338ACC">Text here.</p>
This text has shadow with #338ACC color.
.textShadow {text-shadow: 3px 3px 1px #338ACC, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #338ACC, 5px 5px 20px red">Text here.</p>
This text has shadow with #338ACC primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#338ACC, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#338ACC, Direction=45, Strength=4)">Text</p>
This text has shadow with #338ACC and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #338ACC; -webkit-box-shadow: 1px 1px 3px 2px #338ACC; box-shadow: 1px 1px 3px 2px #338ACC; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #338ACC; -webkit-box-shadow: 1px 1px 3px 2px #338ACC; box-shadow:1px 1px 3px 2px #338ACC;">
Div content here</div>
This text has color #338ACC on black background.
This text has color #338ACC on white background.
This text has black color on #338ACC background.
This text has white color on #338ACC background.