COLOR #402C52

HEX: #402C52
RGB: (64,44,82)

Color info

#402C52 contains red, green and blue colors in about the same proportion. Web safe color of #402C52 is #333366 (or #336).

RGB color model

#402C52 color RGB value is (64,44,82).

  • red value is 64;
  • green value is 44;
  • blue value is 82.
RGB:
(64,44,82)
(25%,17%,32%)

RGB channels and saturation

R 64 of 255 = 25%
G 44 of 255 = 17%
B 82 of 255 = 32%

64
44
82

R + G + B ~ 25%. #402C52 is quite dark color.

Portions of RGB colors in percentages

R + G + B =
64 + 44 + 82 = 190 (100%)
R 64 of 190 ~ 33.68%
G 44 of 190 ~ 23.16%
B 82 of 190 ~ 43.16%

%33.68
%23.16
%43.16

CMYK color model

#402C52 color CMYK value is (22,46,0,68).

  • cyan value is 21.95%
  • magenta value is 46.34%
  • yellow value is 0.00%
  • key color value is 67.84%
CMYK:
(22,46,0,68)
C22M46Y0K68 
(22%,46%,0%,68%)
(0.22/0.46/0.00/0.68)	

CMYK percentages

%21.95
%46.34
%0
%67.84

Codes

Color #402C52 in popluar color models

402C52
RGB644482
HSL272°30.16%24.71%
HSB/HSV272°46.34%32.16%
CMYK21.95%46.34%0.00%
67.84%

Color #402C52 in popluar number systems.

HEX402C52
Decimal644482
Binary10000001011001010010
Octal10054122

Shades and tints

Shades of #402C52

#402C52
(64,44,82)
#3B284B
(59,40,75)
#362444
(54,36,68)
#31203D
(49,32,61)
#2C1C36
(44,28,54)
#27182F
(39,24,47)
#221428
(34,20,40)
#1D1021
(29,16,33)
#180C1A
(24,12,26)
#130813
(19,8,19)
#0E040C
(14,4,12)
#000000
(0,0,0)

Tints of #402C52

#402C52
(64,44,82)
#513F61
(81,63,97)
#625270
(98,82,112)
#73657F
(115,101,127)
#84788E
(132,120,142)
#958B9D
(149,139,157)
#A69EAC
(166,158,172)
#B7B1BB
(183,177,187)
#C8C4CA
(200,196,202)
#D9D7D9
(217,215,217)
#EAEAE8
(234,234,232)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #402C52 color. Also use rgb(64,44,82) instead hex code.

Text Font Color

.myTextColor { color: #402C52; }

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

This text font color is #402C52.


Background Color

.myBgColor { background-color: #402C52; }

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

This div background color is #402C52.


Border color

.myBorderColor { border: 1px solid #402C52; }

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

This div border color is #402C52.


Opacity

.myOpacity80 { color: #402C52; opacity: 0.8; }

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

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

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

This text has shadow with #402C52 color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #402C52 on black background.


Color preview on white background

This text has color #402C52 on white background.



Black color preview on #402C52 background

This text has black color on #402C52 background.


White color preview on #402C52 background

This text has white color on #402C52 background.