COLOR #402872

HEX: #402872 RGB: (64,40,114)

Color info

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

RGB color model

#402872 color RGB value is (64,40,114).

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

RGB channels and saturation

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

64
40
114

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

Portions of RGB colors in percentages

R + G + B = 64 + 40 + 114 = 218 (100%)
R 64 of 218 ~ 29.36%
G 40 of 218 ~ 18.35%
B 114 of 218 ~ 52.29'%

%29.36
%18.35
%52.29

CMYK color model

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

  • cyan value is 43.86%
  • magenta value is 64.91%
  • yellow value is 0.00%
  • key color value is 55.29%

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

CMYK percentages

%43.86
%64.91
%0
%55.29

Codes

Color #402872 in popluar color models

40 28 72
RGB 64 40 114
HSL 259° 48.05% 30.20%
HSB/HSV 259° 64.91% 44.71%
CMYK 43.86% 64.91% 0.00%
55.29%

Color #402872 in popluar number systems.

HEX 40 28 72
Decimal 64 40 114
Binary 1000000 101000 1110010
Octal 100 50 162

Shades and tints

Shades of #402872

#402872
(64,40,114)
#3B2568
(59,37,104)
#36225E
(54,34,94)
#311F54
(49,31,84)
#2C1C4A
(44,28,74)
#271940
(39,25,64)
#221636
(34,22,54)
#1D132C
(29,19,44)
#181022
(24,16,34)
#130D18
(19,13,24)
#0E0A0E
(14,10,14)
#000000
(0,0,0)

Tints of #402872

#402872
(64,40,114)
#513B7E
(81,59,126)
#624E8A
(98,78,138)
#736196
(115,97,150)
#8474A2
(132,116,162)
#9587AE
(149,135,174)
#A69ABA
(166,154,186)
#B7ADC6
(183,173,198)
#C8C0D2
(200,192,210)
#D9D3DE
(217,211,222)
#EAE6EA
(234,230,234)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #402872; }

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

This text font color is #402872.

Background Color

.myBgColor { background-color: #402872; }

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

This div background color is #402872.

Border color

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

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

This div border color is #402872.

Opacity

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

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

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

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

This text has shadow with #402872 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #402872.

Preview

Color preview on black background

This text has color #402872 on black background.


Color preview on white background

This text has color #402872 on white background.


Black color preview on #402872 background

This text has black color on #402872 background.


White color preview on #402872 background

This text has white color on #402872 background.


Related colors

Complementary color

Complementary color for #hex is #BFD78D.


I love getcolorcode.com

Triadic colors

1 #724028 and #287240 with #402872 are triadic colors.

2 #722840 and #284072 with #402872 are triadic colors.