COLOR #402551

HEX: #402551
RGB: (64,37,81)

Color info

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

RGB color model

#402551 color RGB value is (64,37,81).

  • red value is 64;
  • green value is 37;
  • blue value is 81.
RGB:
(64,37,81)
(25%,15%,32%)

RGB channels and saturation

R 64 of 255 = 25%
G 37 of 255 = 15%
B 81 of 255 = 32%

64
37
81

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

Portions of RGB colors in percentages

R + G + B =
64 + 37 + 81 = 182 (100%)
R 64 of 182 ~ 35.16%
G 37 of 182 ~ 20.33%
B 81 of 182 ~ 44.51%

%35.16
%20.33
%44.51

CMYK color model

#402551 color CMYK value is (21,54,0,68).

  • cyan value is 20.99%
  • magenta value is 54.32%
  • yellow value is 0.00%
  • key color value is 68.24%
CMYK:
(21,54,0,68)
C21M54Y0K68 
(21%,54%,0%,68%)
(0.21/0.54/0.00/0.68)	

CMYK percentages

%20.99
%54.32
%0
%68.24

Codes

Color #402551 in popluar color models

402551
RGB643781
HSL277°37.29%23.14%
HSB/HSV277°54.32%31.76%
CMYK20.99%54.32%0.00%
68.24%

Color #402551 in popluar number systems.

HEX402551
Decimal643781
Binary10000001001011010001
Octal10045121

Shades and tints

Shades of #402551

#402551
(64,37,81)
#3B224A
(59,34,74)
#361F43
(54,31,67)
#311C3C
(49,28,60)
#2C1935
(44,25,53)
#27162E
(39,22,46)
#221327
(34,19,39)
#1D1020
(29,16,32)
#180D19
(24,13,25)
#130A12
(19,10,18)
#0E070B
(14,7,11)
#000000
(0,0,0)

Tints of #402551

#402551
(64,37,81)
#513860
(81,56,96)
#624B6F
(98,75,111)
#735E7E
(115,94,126)
#84718D
(132,113,141)
#95849C
(149,132,156)
#A697AB
(166,151,171)
#B7AABA
(183,170,186)
#C8BDC9
(200,189,201)
#D9D0D8
(217,208,216)
#EAE3E7
(234,227,231)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #402551 color. Also use rgb(64,37,81) instead hex code.

Text Font Color

.myTextColor { color: #402551; }

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

This text font color is #402551.


Background Color

.myBgColor { background-color: #402551; }

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

This div background color is #402551.


Border color

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

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

This div border color is #402551.


Opacity

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

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

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

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

This text has shadow with #402551 color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #402551 on black background.


Color preview on white background

This text has color #402551 on white background.



Black color preview on #402551 background

This text has black color on #402551 background.


White color preview on #402551 background

This text has white color on #402551 background.