COLOR #021138

HEX: #021138
RGB: (2,17,56)

Color info

#021138 contains red, green and blue colors in about the same proportion. Web safe color of #021138 is #000033 (or #003).

RGB color model

#021138 color RGB value is (2,17,56).

  • red value is 2;
  • green value is 17;
  • blue value is 56.
RGB:
(2,17,56)
(1%,7%,22%)

RGB channels and saturation

R 2 of 255 = 1%
G 17 of 255 = 7%
B 56 of 255 = 22%

2
17
56

R + G + B ~ 10%. #021138 is dark color.

Portions of RGB colors in percentages

R + G + B =
2 + 17 + 56 = 75 (100%)
R 2 of 75 ~ 2.67%
G 17 of 75 ~ 22.67%
B 56 of 75 ~ 74.67%

%22.67
%74.67

CMYK color model

#021138 color CMYK value is (96,70,0,78).

  • cyan value is 96.43%
  • magenta value is 69.64%
  • yellow value is 0.00%
  • key color value is 78.04%
CMYK:
(96,70,0,78)
C96M70Y0K78 
(96%,70%,0%,78%)
(0.96/0.70/0.00/0.78)	

CMYK percentages

%96.43
%69.64
%0
%78.04

Codes

Color #021138 in popluar color models

021138
RGB21756
HSL223°93.10%11.37%
HSB/HSV223°96.43%21.96%
CMYK96.43%69.64%0.00%
78.04%

Color #021138 in popluar number systems.

HEX021138
Decimal21756
Binary1010001111000
Octal22170

Shades and tints

Shades of #021138

#021138
(2,17,56)
#021033
(2,16,51)
#020F2E
(2,15,46)
#020E29
(2,14,41)
#020D24
(2,13,36)
#020C1F
(2,12,31)
#020B1A
(2,11,26)
#020A15
(2,10,21)
#020910
(2,9,16)
#02080B
(2,8,11)
#020706
(2,7,6)
#000000
(0,0,0)

Tints of #021138

#021138
(2,17,56)
#19264A
(25,38,74)
#303B5C
(48,59,92)
#47506E
(71,80,110)
#5E6580
(94,101,128)
#757A92
(117,122,146)
#8C8FA4
(140,143,164)
#A3A4B6
(163,164,182)
#BAB9C8
(186,185,200)
#D1CEDA
(209,206,218)
#E8E3EC
(232,227,236)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #021138 color. Also use rgb(2,17,56) instead hex code.

Text Font Color

.myTextColor { color: #021138; }

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

This text font color is #021138.


Background Color

.myBgColor { background-color: #021138; }

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

This div background color is #021138.


Border color

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

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

This div border color is #021138.


Opacity

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

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

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

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

This text has shadow with #021138 color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #021138 on black background.


Color preview on white background

This text has color #021138 on white background.



Black color preview on #021138 background

This text has black color on #021138 background.


White color preview on #021138 background

This text has white color on #021138 background.