HEX: #0C428C
RGB: (12,66,140)
#0C428C contains mainly blue color. Web safe color of #0C428C is #003399 (or #039).
#0C428C color RGB value is (12,66,140).
RGB: (12,66,140) (5%,26%,55%)
R 12 of 255 = 5%
G 66 of 255 = 26%
B 140 of 255 = 55%
R + G + B ~ 29%. #0C428C is quite dark color.
R + G + B =
12 + 66 + 140 = 218 (100%)
R 12 of 218 ~ 5.5%
G 66 of 218 ~ 30.28%
B 140 of 218 ~ 64.22%
#0C428C color CMYK value is (91,53,0,45).
CMYK: (91,53,0,45) C91M53Y0K45 (91%,53%,0%,45%) (0.91/0.53/0.00/0.45)
0C | 42 | 8C | |
---|---|---|---|
RGB | 12 | 66 | 140 |
HSL | 215° | 84.21% | 29.80% |
HSB/HSV | 215° | 91.43% | 54.90% |
CMYK | 91.43% | 52.86% | 0.00% |
45.10% |
HEX | 0C | 42 | 8C |
Decimal | 12 | 66 | 140 |
Binary | 1100 | 1000010 | 10001100 |
Octal | 14 | 102 | 214 |
Examples of css and html codes for elements with #0C428C color. Also use rgb(12,66,140) instead hex code.
.myTextColor { color: #0C428C; }
<p style="color:#0C428C">This sample text font color is #0C428C.</p>
This text font color is #0C428C.
.myBgColor { background-color: #0C428C; }
<div style="background-color:#0C428C">Inner text</div>
This div background color is #0C428C.
.myBorderColor { border: 1px solid #0C428C; }
<div style="border:3px solid #0C428C">Div</div>
This div border color is #0C428C.
.myOpacity80 { color: #0C428C; opacity: 0.8; }
<p style="color:#0C428C;opacity:0.8;">80%</p>
Text with #0C428C color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #0C428C;}
<p style="text-shadow: 3px 3px 1px #0C428C">Text here.</p>
This text has shadow with #0C428C color.
.textShadow {text-shadow: 3px 3px 1px #0C428C, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #0C428C, 5px 5px 20px red">Text here.</p>
This text has shadow with #0C428C primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#0C428C, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#0C428C, Direction=45, Strength=4)">Text</p>
This text has shadow with #0C428C and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #0C428C; -webkit-box-shadow: 1px 1px 3px 2px #0C428C; box-shadow: 1px 1px 3px 2px #0C428C; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #0C428C; -webkit-box-shadow: 1px 1px 3px 2px #0C428C; box-shadow:1px 1px 3px 2px #0C428C;">
Div content here</div>
This text has color #0C428C on black background.
This text has color #0C428C on white background.
This text has black color on #0C428C background.
This text has white color on #0C428C background.