COLOR #402059

HEX: #402059 RGB: (64,32,89)

Color info

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

RGB color model

#402059 color RGB value is (64,32,89).

RGB: (64,32,89) (25%, 13%, 35%)

RGB channels and saturation

R 64 of 255 = 25%
G 32 of 255 = 13%
B 89 of 255 = 35%

64
32
89

R + G + B ~ 24%. #402059 is dark color.

Portions of RGB colors in percentages

R + G + B = 64 + 32 + 89 = 185 (100%)
R 64 of 185 ~ 34.59%
G 32 of 185 ~ 17.3%
B 89 of 185 ~ 48.11'%

%34.59
%17.3
%48.11

CMYK color model

#402059 color CMYK value is (28,64,0,65).

  • cyan value is 28.09%
  • magenta value is 64.04%
  • yellow value is 0.00%
  • key color value is 65.10%

CMYK: (28,64,0,65)
C28M64Y0K65 (28%, 64%, 0%, 65%)
(0.28 / 0.64 / 0.00 / 0.65)

CMYK percentages

%28.09
%64.04
%0
%65.1

Codes

Color #402059 in popluar color models

40 20 59
RGB 64 32 89
HSL 274° 47.11% 23.73%
HSB/HSV 274° 64.04% 34.90%
CMYK 28.09% 64.04% 0.00%
65.10%

Color #402059 in popluar number systems.

HEX 40 20 59
Decimal 64 32 89
Binary 1000000 100000 1011001
Octal 100 40 131

Shades and tints

Shades of #402059

#402059
(64,32,89)
#3B1E51
(59,30,81)
#361C49
(54,28,73)
#311A41
(49,26,65)
#2C1839
(44,24,57)
#271631
(39,22,49)
#221429
(34,20,41)
#1D1221
(29,18,33)
#181019
(24,16,25)
#130E11
(19,14,17)
#0E0C09
(14,12,9)
#000000
(0,0,0)

Tints of #402059

#402059
(64,32,89)
#513468
(81,52,104)
#624877
(98,72,119)
#735C86
(115,92,134)
#847095
(132,112,149)
#9584A4
(149,132,164)
#A698B3
(166,152,179)
#B7ACC2
(183,172,194)
#C8C0D1
(200,192,209)
#D9D4E0
(217,212,224)
#EAE8EF
(234,232,239)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #402059; }

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

This text font color is #402059.

Background Color

.myBgColor { background-color: #402059; }

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

This div background color is #402059.

Border color

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

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

This div border color is #402059.

Opacity

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

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

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

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

This text has shadow with #402059 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #402059.

Preview

Color preview on black background

This text has color #402059 on black background.


Color preview on white background

This text has color #402059 on white background.


Black color preview on #402059 background

This text has black color on #402059 background.


White color preview on #402059 background

This text has white color on #402059 background.


Related colors

Complementary color

Complementary color for #hex is #BFDFA6.


I love getcolorcode.com

Triadic colors

1 #594020 and #205940 with #402059 are triadic colors.

2 #592040 and #204059 with #402059 are triadic colors.