COLOR #402021

HEX: #402021
RGB: (64,32,33)

Color info

#402021 contains red, green and blue colors in about the same proportion. Web safe color of #402021 is #333333 (or #333).

RGB color model

#402021 color RGB value is (64,32,33).

  • red value is 64;
  • green value is 32;
  • blue value is 33.
RGB:
(64,32,33)
(25%,13%,13%)

RGB channels and saturation

R 64 of 255 = 25%
G 32 of 255 = 13%
B 33 of 255 = 13%

64
32
33

R + G + B ~ 17%. #402021 is dark color.

Portions of RGB colors in percentages

R + G + B =
64 + 32 + 33 = 129 (100%)
R 64 of 129 ~ 49.61%
G 32 of 129 ~ 24.81%
B 33 of 129 ~ 25.58%

%49.61
%24.81
%25.58

CMYK color model

#402021 color CMYK value is (0,50,48,75).

  • cyan value is 0.00%
  • magenta value is 50.00%
  • yellow value is 48.44%
  • key color value is 74.90%
CMYK:
(0,50,48,75)
C0M50Y48K75 
(0%,50%,48%,75%)
(0.00/0.50/0.48/0.75)	

CMYK percentages

%0
%50
%48.44
%74.9

Codes

Color #402021 in popluar color models

402021
RGB643233
HSL358°33.33%18.82%
HSB/HSV358°50.00%25.10%
CMYK0.00%50.00%48.44%
74.90%

Color #402021 in popluar number systems.

HEX402021
Decimal643233
Binary1000000100000100001
Octal1004041

Shades and tints

Shades of #402021

#402021
(64,32,33)
#3B1E1E
(59,30,30)
#361C1B
(54,28,27)
#311A18
(49,26,24)
#2C1815
(44,24,21)
#271612
(39,22,18)
#22140F
(34,20,15)
#1D120C
(29,18,12)
#181009
(24,16,9)
#130E06
(19,14,6)
#0E0C03
(14,12,3)
#000000
(0,0,0)

Tints of #402021

#402021
(64,32,33)
#513435
(81,52,53)
#624849
(98,72,73)
#735C5D
(115,92,93)
#847071
(132,112,113)
#958485
(149,132,133)
#A69899
(166,152,153)
#B7ACAD
(183,172,173)
#C8C0C1
(200,192,193)
#D9D4D5
(217,212,213)
#EAE8E9
(234,232,233)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #402021 color. Also use rgb(64,32,33) instead hex code.

Text Font Color

.myTextColor { color: #402021; }

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

This text font color is #402021.


Background Color

.myBgColor { background-color: #402021; }

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

This div background color is #402021.


Border color

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

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

This div border color is #402021.


Opacity

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

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

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

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

This text has shadow with #402021 color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #402021 on black background.


Color preview on white background

This text has color #402021 on white background.



Black color preview on #402021 background

This text has black color on #402021 background.


White color preview on #402021 background

This text has white color on #402021 background.