COLOR #402048

HEX: #402048 RGB: (64,32,72)

Color info

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

RGB color model

#402048 color RGB value is (64,32,72).

RGB: (64,32,72) (25%, 13%, 28%)

RGB channels and saturation

R 64 of 255 = 25%
G 32 of 255 = 13%
B 72 of 255 = 28%

64
32
72

R + G + B ~ 22%. #402048 is dark color.

Portions of RGB colors in percentages

R + G + B = 64 + 32 + 72 = 168 (100%)
R 64 of 168 ~ 38.1%
G 32 of 168 ~ 19.05%
B 72 of 168 ~ 42.86'%

%38.1
%19.05
%42.86

CMYK color model

#402048 color CMYK value is (11,56,0,72).

  • cyan value is 11.11%
  • magenta value is 55.56%
  • yellow value is 0.00%
  • key color value is 71.76%

CMYK: (11,56,0,72)
C11M56Y0K72 (11%, 56%, 0%, 72%)
(0.11 / 0.56 / 0.00 / 0.72)

CMYK percentages

%11.11
%55.56
%0
%71.76

Codes

Color #402048 in popluar color models

40 20 48
RGB 64 32 72
HSL 288° 38.46% 20.39%
HSB/HSV 288° 55.56% 28.24%
CMYK 11.11% 55.56% 0.00%
71.76%

Color #402048 in popluar number systems.

HEX 40 20 48
Decimal 64 32 72
Binary 1000000 100000 1001000
Octal 100 40 110

Shades and tints

Shades of #402048

#402048
(64,32,72)
#3B1E42
(59,30,66)
#361C3C
(54,28,60)
#311A36
(49,26,54)
#2C1830
(44,24,48)
#27162A
(39,22,42)
#221424
(34,20,36)
#1D121E
(29,18,30)
#181018
(24,16,24)
#130E12
(19,14,18)
#0E0C0C
(14,12,12)
#000000
(0,0,0)

Tints of #402048

#402048
(64,32,72)
#513458
(81,52,88)
#624868
(98,72,104)
#735C78
(115,92,120)
#847088
(132,112,136)
#958498
(149,132,152)
#A698A8
(166,152,168)
#B7ACB8
(183,172,184)
#C8C0C8
(200,192,200)
#D9D4D8
(217,212,216)
#EAE8E8
(234,232,232)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #402048; }

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

This text font color is #402048.

Background Color

.myBgColor { background-color: #402048; }

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

This div background color is #402048.

Border color

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

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

This div border color is #402048.

Opacity

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

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

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

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

This text has shadow with #402048 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #402048.

Preview

Color preview on black background

This text has color #402048 on black background.


Color preview on white background

This text has color #402048 on white background.


Black color preview on #402048 background

This text has black color on #402048 background.


White color preview on #402048 background

This text has white color on #402048 background.


Related colors

Complementary color

Complementary color for #hex is #BFDFB7.


I love getcolorcode.com

Triadic colors

1 #484020 and #204840 with #402048 are triadic colors.

2 #482040 and #204048 with #402048 are triadic colors.