COLOR #402873

HEX: #402873 RGB: (64,40,115)

Color info

#402873 contains mainly red and blue colors. Web safe color of #402873 is #333366 (or #336).

RGB color model

#402873 color RGB value is (64,40,115).

RGB: (64,40,115) (25%, 16%, 45%)

RGB channels and saturation

R 64 of 255 = 25%
G 40 of 255 = 16%
B 115 of 255 = 45%

64
40
115

R + G + B ~ 29%. #402873 is quite dark color.

Portions of RGB colors in percentages

R + G + B = 64 + 40 + 115 = 219 (100%)
R 64 of 219 ~ 29.22%
G 40 of 219 ~ 18.26%
B 115 of 219 ~ 52.51'%

%29.22
%18.26
%52.51

CMYK color model

#402873 color CMYK value is (44,65,0,55).

  • cyan value is 44.35%
  • magenta value is 65.22%
  • yellow value is 0.00%
  • key color value is 54.90%

CMYK: (44,65,0,55)
C44M65Y0K55 (44%, 65%, 0%, 55%)
(0.44 / 0.65 / 0.00 / 0.55)

CMYK percentages

%44.35
%65.22
%0
%54.9

Codes

Color #402873 in popluar color models

40 28 73
RGB 64 40 115
HSL 259° 48.39% 30.39%
HSB/HSV 259° 65.22% 45.10%
CMYK 44.35% 65.22% 0.00%
54.90%

Color #402873 in popluar number systems.

HEX 40 28 73
Decimal 64 40 115
Binary 1000000 101000 1110011
Octal 100 50 163

Shades and tints

Shades of #402873

#402873
(64,40,115)
#3B2569
(59,37,105)
#36225F
(54,34,95)
#311F55
(49,31,85)
#2C1C4B
(44,28,75)
#271941
(39,25,65)
#221637
(34,22,55)
#1D132D
(29,19,45)
#181023
(24,16,35)
#130D19
(19,13,25)
#0E0A0F
(14,10,15)
#000000
(0,0,0)

Tints of #402873

#402873
(64,40,115)
#513B7F
(81,59,127)
#624E8B
(98,78,139)
#736197
(115,97,151)
#8474A3
(132,116,163)
#9587AF
(149,135,175)
#A69ABB
(166,154,187)
#B7ADC7
(183,173,199)
#C8C0D3
(200,192,211)
#D9D3DF
(217,211,223)
#EAE6EB
(234,230,235)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #402873 color. Also use rgb(64,40,115) instead hex code.

Text Font Color

.myTextColor { color: #402873; }

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

This text font color is #402873.

Background Color

.myBgColor { background-color: #402873; }

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

This div background color is #402873.

Border color

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

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

This div border color is #402873.

Opacity

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

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

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

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

This text has shadow with #402873 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #402873.

Preview

Color preview on black background

This text has color #402873 on black background.


Color preview on white background

This text has color #402873 on white background.


Black color preview on #402873 background

This text has black color on #402873 background.


White color preview on #402873 background

This text has white color on #402873 background.


Related colors

Complementary color

Complementary color for #hex is #BFD78C.


I love getcolorcode.com

Triadic colors

1 #734028 and #287340 with #402873 are triadic colors.

2 #732840 and #284073 with #402873 are triadic colors.