COLOR #402760

HEX: #402760 RGB: (64,39,96)

Color info

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

RGB color model

#402760 color RGB value is (64,39,96).

RGB: (64,39,96) (25%, 15%, 38%)

RGB channels and saturation

R 64 of 255 = 25%
G 39 of 255 = 15%
B 96 of 255 = 38%

64
39
96

R + G + B ~ 26%. #402760 is quite dark color.

Portions of RGB colors in percentages

R + G + B = 64 + 39 + 96 = 199 (100%)
R 64 of 199 ~ 32.16%
G 39 of 199 ~ 19.6%
B 96 of 199 ~ 48.24'%

%32.16
%19.6
%48.24

CMYK color model

#402760 color CMYK value is (33,59,0,62).

  • cyan value is 33.33%
  • magenta value is 59.38%
  • yellow value is 0.00%
  • key color value is 62.35%

CMYK: (33,59,0,62)
C33M59Y0K62 (33%, 59%, 0%, 62%)
(0.33 / 0.59 / 0.00 / 0.62)

CMYK percentages

%33.33
%59.38
%0
%62.35

Codes

Color #402760 in popluar color models

40 27 60
RGB 64 39 96
HSL 266° 42.22% 26.47%
HSB/HSV 266° 59.38% 37.65%
CMYK 33.33% 59.38% 0.00%
62.35%

Color #402760 in popluar number systems.

HEX 40 27 60
Decimal 64 39 96
Binary 1000000 100111 1100000
Octal 100 47 140

Shades and tints

Shades of #402760

#402760
(64,39,96)
#3B2458
(59,36,88)
#362150
(54,33,80)
#311E48
(49,30,72)
#2C1B40
(44,27,64)
#271838
(39,24,56)
#221530
(34,21,48)
#1D1228
(29,18,40)
#180F20
(24,15,32)
#130C18
(19,12,24)
#0E0910
(14,9,16)
#000000
(0,0,0)

Tints of #402760

#402760
(64,39,96)
#513A6E
(81,58,110)
#624D7C
(98,77,124)
#73608A
(115,96,138)
#847398
(132,115,152)
#9586A6
(149,134,166)
#A699B4
(166,153,180)
#B7ACC2
(183,172,194)
#C8BFD0
(200,191,208)
#D9D2DE
(217,210,222)
#EAE5EC
(234,229,236)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #402760 color. Also use rgb(64,39,96) instead hex code.

Text Font Color

.myTextColor { color: #402760; }

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

This text font color is #402760.

Background Color

.myBgColor { background-color: #402760; }

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

This div background color is #402760.

Border color

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

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

This div border color is #402760.

Opacity

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

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

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

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

This text has shadow with #402760 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #402760.

Preview

Color preview on black background

This text has color #402760 on black background.


Color preview on white background

This text has color #402760 on white background.


Black color preview on #402760 background

This text has black color on #402760 background.


White color preview on #402760 background

This text has white color on #402760 background.


Related colors

Complementary color

Complementary color for #hex is #BFD89F.


I love getcolorcode.com

Triadic colors

1 #604027 and #276040 with #402760 are triadic colors.

2 #602740 and #274060 with #402760 are triadic colors.