COLOR #D4021B

HEX: #D4021B
RGB: (212,2,27)

Color info

#D4021B contains mainly red color. Web safe color of #D4021B is #CC0033 (or #C03).

RGB color model

#D4021B color RGB value is (212,2,27).

  • red value is 212;
  • green value is 2;
  • blue value is 27.
RGB:
(212,2,27)
(83%,1%,11%)

RGB channels and saturation

R 212 of 255 = 83%
G 2 of 255 = 1%
B 27 of 255 = 11%

212
2
27

R + G + B ~ 32%. #D4021B is quite dark color.

Portions of RGB colors in percentages

R + G + B =
212 + 2 + 27 = 241 (100%)
R 212 of 241 ~ 87.97%
G 2 of 241 ~ 0.83%
B 27 of 241 ~ 11.2%

%87.97
%11.2

CMYK color model

#D4021B color CMYK value is (0,99,87,17).

  • cyan value is 0.00%
  • magenta value is 99.06%
  • yellow value is 87.26%
  • key color value is 16.86%
CMYK:
(0,99,87,17)
C0M99Y87K17 
(0%,99%,87%,17%)
(0.00/0.99/0.87/0.17)	

CMYK percentages

%0
%99.06
%87.26
%16.86

Codes

Color #D4021B in popluar color models

D4021B
RGB212227
HSL353°98.13%41.96%
HSB/HSV353°99.06%83.14%
CMYK0.00%99.06%87.26%
16.86%

Color #D4021B in popluar number systems.

HEXD4021B
Decimal212227
Binary110101001011011
Octal324233

Shades and tints

Shades of #D4021B

#D4021B
(212,2,27)
#C10219
(193,2,25)
#AE0217
(174,2,23)
#9B0215
(155,2,21)
#880213
(136,2,19)
#750211
(117,2,17)
#62020F
(98,2,15)
#4F020D
(79,2,13)
#3C020B
(60,2,11)
#290209
(41,2,9)
#160207
(22,2,7)
#000000
(0,0,0)

Tints of #D4021B

#D4021B
(212,2,27)
#D7192F
(215,25,47)
#DA3043
(218,48,67)
#DD4757
(221,71,87)
#E05E6B
(224,94,107)
#E3757F
(227,117,127)
#E68C93
(230,140,147)
#E9A3A7
(233,163,167)
#ECBABB
(236,186,187)
#EFD1CF
(239,209,207)
#F2E8E3
(242,232,227)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #D4021B color. Also use rgb(212,2,27) instead hex code.

Text Font Color

.myTextColor { color: #D4021B; }

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

This text font color is #D4021B.


Background Color

.myBgColor { background-color: #D4021B; }

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

This div background color is #D4021B.


Border color

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

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

This div border color is #D4021B.


Opacity

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

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

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

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

This text has shadow with #D4021B color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #D4021B on black background.


Color preview on white background

This text has color #D4021B on white background.



Black color preview on #D4021B background

This text has black color on #D4021B background.


White color preview on #D4021B background

This text has white color on #D4021B background.