COLOR #402459

HEX: #402459 RGB: (64,36,89)

Color info

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

RGB color model

#402459 color RGB value is (64,36,89).

RGB: (64,36,89) (25%, 14%, 35%)

RGB channels and saturation

R 64 of 255 = 25%
G 36 of 255 = 14%
B 89 of 255 = 35%

64
36
89

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

Portions of RGB colors in percentages

R + G + B = 64 + 36 + 89 = 189 (100%)
R 64 of 189 ~ 33.86%
G 36 of 189 ~ 19.05%
B 89 of 189 ~ 47.09'%

%33.86
%19.05
%47.09

CMYK color model

#402459 color CMYK value is (28,60,0,65).

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

CMYK: (28,60,0,65)
C28M60Y0K65 (28%, 60%, 0%, 65%)
(0.28 / 0.60 / 0.00 / 0.65)

CMYK percentages

%28.09
%59.55
%0
%65.1

Codes

Color #402459 in popluar color models

40 24 59
RGB 64 36 89
HSL 272° 42.40% 24.51%
HSB/HSV 272° 59.55% 34.90%
CMYK 28.09% 59.55% 0.00%
65.10%

Color #402459 in popluar number systems.

HEX 40 24 59
Decimal 64 36 89
Binary 1000000 100100 1011001
Octal 100 44 131

Shades and tints

Shades of #402459

#402459
(64,36,89)
#3B2151
(59,33,81)
#361E49
(54,30,73)
#311B41
(49,27,65)
#2C1839
(44,24,57)
#271531
(39,21,49)
#221229
(34,18,41)
#1D0F21
(29,15,33)
#180C19
(24,12,25)
#130911
(19,9,17)
#0E0609
(14,6,9)
#000000
(0,0,0)

Tints of #402459

#402459
(64,36,89)
#513768
(81,55,104)
#624A77
(98,74,119)
#735D86
(115,93,134)
#847095
(132,112,149)
#9583A4
(149,131,164)
#A696B3
(166,150,179)
#B7A9C2
(183,169,194)
#C8BCD1
(200,188,209)
#D9CFE0
(217,207,224)
#EAE2EF
(234,226,239)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #402459; }

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

This text font color is #402459.

Background Color

.myBgColor { background-color: #402459; }

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

This div background color is #402459.

Border color

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

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

This div border color is #402459.

Opacity

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

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

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

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

This text has shadow with #402459 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #402459.

Preview

Color preview on black background

This text has color #402459 on black background.


Color preview on white background

This text has color #402459 on white background.


Black color preview on #402459 background

This text has black color on #402459 background.


White color preview on #402459 background

This text has white color on #402459 background.


Related colors

Complementary color

Complementary color for #hex is #BFDBA6.


I love getcolorcode.com

Triadic colors

1 #594024 and #245940 with #402459 are triadic colors.

2 #592440 and #244059 with #402459 are triadic colors.