COLOR #0C2A8E

HEX: #0C2A8E
RGB: (12,42,142)

Color info

#0C2A8E contains mainly blue color. Web safe color of #0C2A8E is #003399 (or #039).

RGB color model

#0C2A8E color RGB value is (12,42,142).

  • red value is 12;
  • green value is 42;
  • blue value is 142.
RGB:
(12,42,142)
(5%,16%,56%)

RGB channels and saturation

R 12 of 255 = 5%
G 42 of 255 = 16%
B 142 of 255 = 56%

12
42
142

R + G + B ~ 26%. #0C2A8E is quite dark color.

Portions of RGB colors in percentages

R + G + B =
12 + 42 + 142 = 196 (100%)
R 12 of 196 ~ 6.12%
G 42 of 196 ~ 21.43%
B 142 of 196 ~ 72.45%

%21.43
%72.45

CMYK color model

#0C2A8E color CMYK value is (92,70,0,44).

  • cyan value is 91.55%
  • magenta value is 70.42%
  • yellow value is 0.00%
  • key color value is 44.31%
CMYK:
(92,70,0,44)
C92M70Y0K44 
(92%,70%,0%,44%)
(0.92/0.70/0.00/0.44)	

CMYK percentages

%91.55
%70.42
%0
%44.31

Codes

Color #0C2A8E in popluar color models

0C2A8E
RGB1242142
HSL226°84.42%30.20%
HSB/HSV226°91.55%55.69%
CMYK91.55%70.42%0.00%
44.31%

Color #0C2A8E in popluar number systems.

HEX0C2A8E
Decimal1242142
Binary110010101010001110
Octal1452216

Shades and tints

Shades of #0C2A8E

#0C2A8E
(12,42,142)
#0B2782
(11,39,130)
#0A2476
(10,36,118)
#09216A
(9,33,106)
#081E5E
(8,30,94)
#071B52
(7,27,82)
#061846
(6,24,70)
#05153A
(5,21,58)
#04122E
(4,18,46)
#030F22
(3,15,34)
#020C16
(2,12,22)
#000000
(0,0,0)

Tints of #0C2A8E

#0C2A8E
(12,42,142)
#223D98
(34,61,152)
#3850A2
(56,80,162)
#4E63AC
(78,99,172)
#6476B6
(100,118,182)
#7A89C0
(122,137,192)
#909CCA
(144,156,202)
#A6AFD4
(166,175,212)
#BCC2DE
(188,194,222)
#D2D5E8
(210,213,232)
#E8E8F2
(232,232,242)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #0C2A8E color. Also use rgb(12,42,142) instead hex code.

Text Font Color

.myTextColor { color: #0C2A8E; }

<p style="color:#0C2A8E">This sample text font color is #0C2A8E.</p>

This text font color is #0C2A8E.


Background Color

.myBgColor { background-color: #0C2A8E; }

<div style="background-color:#0C2A8E">Inner text</div>

This div background color is #0C2A8E.


Border color

.myBorderColor { border: 1px solid #0C2A8E; }

<div style="border:3px solid #0C2A8E">Div</div>

This div border color is #0C2A8E.


Opacity

.myOpacity80 { color: #0C2A8E; opacity: 0.8; }

<p style="color:#0C2A8E;opacity:0.8;">80%</p>

Text with #0C2A8E color and opacity 100% | 80% | 50% | 30%.

Background with opacity value 100%.

Background with opacity value 80%.

Background with opacity value 50%.

Background with opacity value 30%.

Text shadow color

.textShadow {text-shadow: 3px 3px 1px #0C2A8E;}

<p style="text-shadow: 3px 3px 1px #0C2A8E">Text here.</p>

This text has shadow with #0C2A8E color.

.textShadow {text-shadow: 3px 3px 1px #0C2A8E, 3px 3px 1px red;}

<p style="text-shadow: 3px 3px 1px #0C2A8E, 5px 5px 20px red">Text here.</p>

This text has shadow with #0C2A8E primary color and red secondary color.


Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#0C2A8E, Direction=45, Strength=4)}

<p style="filter: Shadow(Color=#0C2A8E, Direction=45, Strength=4)">Text</p>

This text has shadow with #0C2A8E and red colors in old Internet Explorer.


Div box shadow color

/* css code */
.divShadow
{
  -moz-box-shadow:	1px 1px 3px 2px #0C2A8E;
  -webkit-box-shadow:	1px 1px 3px 2px #0C2A8E;
  box-shadow:		1px 1px 3px 2px #0C2A8E;
}

/* html code with inline style */
<div style="-moz-box-shadow: 1px 1px 3px 2px #0C2A8E;
-webkit-box-shadow: 1px 1px 3px 2px #0C2A8E;
box-shadow:1px 1px 3px 2px #0C2A8E;">
Div content here</div>
This div box has shadow with color #0C2A8E.

Preview

Color preview on black background

This text has color #0C2A8E on black background.


Color preview on white background

This text has color #0C2A8E on white background.



Black color preview on #0C2A8E background

This text has black color on #0C2A8E background.


White color preview on #0C2A8E background

This text has white color on #0C2A8E background.