COLOR #021242

HEX: #021242
RGB: (2,18,66)

Color info

#021242 contains mainly green and blue colors. Web safe color of #021242 is #000033 (or #003).

RGB color model

#021242 color RGB value is (2,18,66).

  • red value is 2;
  • green value is 18;
  • blue value is 66.
RGB:
(2,18,66)
(1%,7%,26%)

RGB channels and saturation

R 2 of 255 = 1%
G 18 of 255 = 7%
B 66 of 255 = 26%

2
18
66

R + G + B ~ 11%. #021242 is dark color.

Portions of RGB colors in percentages

R + G + B =
2 + 18 + 66 = 86 (100%)
R 2 of 86 ~ 2.33%
G 18 of 86 ~ 20.93%
B 66 of 86 ~ 76.74%

%20.93
%76.74

CMYK color model

#021242 color CMYK value is (97,73,0,74).

  • cyan value is 96.97%
  • magenta value is 72.73%
  • yellow value is 0.00%
  • key color value is 74.12%
CMYK:
(97,73,0,74)
C97M73Y0K74 
(97%,73%,0%,74%)
(0.97/0.73/0.00/0.74)	

CMYK percentages

%96.97
%72.73
%0
%74.12

Codes

Color #021242 in popluar color models

021242
RGB21866
HSL225°94.12%13.33%
HSB/HSV225°96.97%25.88%
CMYK96.97%72.73%0.00%
74.12%

Color #021242 in popluar number systems.

HEX021242
Decimal21866
Binary10100101000010
Octal222102

Shades and tints

Shades of #021242

#021242
(2,18,66)
#02113C
(2,17,60)
#021036
(2,16,54)
#020F30
(2,15,48)
#020E2A
(2,14,42)
#020D24
(2,13,36)
#020C1E
(2,12,30)
#020B18
(2,11,24)
#020A12
(2,10,18)
#02090C
(2,9,12)
#020806
(2,8,6)
#000000
(0,0,0)

Tints of #021242

#021242
(2,18,66)
#192753
(25,39,83)
#303C64
(48,60,100)
#475175
(71,81,117)
#5E6686
(94,102,134)
#757B97
(117,123,151)
#8C90A8
(140,144,168)
#A3A5B9
(163,165,185)
#BABACA
(186,186,202)
#D1CFDB
(209,207,219)
#E8E4EC
(232,228,236)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #021242 color. Also use rgb(2,18,66) instead hex code.

Text Font Color

.myTextColor { color: #021242; }

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

This text font color is #021242.


Background Color

.myBgColor { background-color: #021242; }

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

This div background color is #021242.


Border color

.myBorderColor { border: 1px solid #021242; }

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

This div border color is #021242.


Opacity

.myOpacity80 { color: #021242; opacity: 0.8; }

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

Text with #021242 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 #021242;}

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

This text has shadow with #021242 color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #021242 on black background.


Color preview on white background

This text has color #021242 on white background.



Black color preview on #021242 background

This text has black color on #021242 background.


White color preview on #021242 background

This text has white color on #021242 background.