COLOR #021840

HEX: #021840 RGB: (2,24,64)

Color info

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

RGB color model

#021840 color RGB value is (2,24,64).

RGB: (2,24,64) (1%, 9%, 25%)

RGB channels and saturation

R 2 of 255 = 1%
G 24 of 255 = 9%
B 64 of 255 = 25%

2
24
64

R + G + B ~ 12%. #021840 is dark color.

Portions of RGB colors in percentages

R + G + B = 2 + 24 + 64 = 90 (100%)
R 2 of 90 ~ 2.22%
G 24 of 90 ~ 26.67%
B 64 of 90 ~ 71.11'%

%26.67
%71.11

CMYK color model

#021840 color CMYK value is (97,63,0,75).

  • cyan value is 96.88%
  • magenta value is 62.50%
  • yellow value is 0.00%
  • key color value is 74.90%

CMYK: (97,63,0,75)
C97M63Y0K75 (97%, 63%, 0%, 75%)
(0.97 / 0.63 / 0.00 / 0.75)

CMYK percentages

%96.88
%62.5
%0
%74.9

Codes

Color #021840 in popluar color models

02 18 40
RGB 2 24 64
HSL 219° 93.94% 12.94%
HSB/HSV 219° 96.88% 25.10%
CMYK 96.88% 62.50% 0.00%
74.90%

Color #021840 in popluar number systems.

HEX 02 18 40
Decimal 2 24 64
Binary 10 11000 1000000
Octal 2 30 100

Shades and tints

Shades of #021840

#021840
(2,24,64)
#02163B
(2,22,59)
#021436
(2,20,54)
#021231
(2,18,49)
#02102C
(2,16,44)
#020E27
(2,14,39)
#020C22
(2,12,34)
#020A1D
(2,10,29)
#020818
(2,8,24)
#020613
(2,6,19)
#02040E
(2,4,14)
#000000
(0,0,0)

Tints of #021840

#021840
(2,24,64)
#192D51
(25,45,81)
#304262
(48,66,98)
#475773
(71,87,115)
#5E6C84
(94,108,132)
#758195
(117,129,149)
#8C96A6
(140,150,166)
#A3ABB7
(163,171,183)
#BAC0C8
(186,192,200)
#D1D5D9
(209,213,217)
#E8EAEA
(232,234,234)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #021840 color. Also use rgb(2,24,64) instead hex code.

Text Font Color

.myTextColor { color: #021840; }

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

This text font color is #021840.

Background Color

.myBgColor { background-color: #021840; }

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

This div background color is #021840.

Border color

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

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

This div border color is #021840.

Opacity

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

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

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

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

This text has shadow with #021840 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #021840.

Preview

Color preview on black background

This text has color #021840 on black background.


Color preview on white background

This text has color #021840 on white background.


Black color preview on #021840 background

This text has black color on #021840 background.


White color preview on #021840 background

This text has white color on #021840 background.


Related colors

Complementary color

Complementary color for #hex is #FDE7BF.


I love getcolorcode.com

Triadic colors

1 #400218 and #184002 with #021840 are triadic colors.

2 #401802 and #180240 with #021840 are triadic colors.