COLOR #402D4C

HEX: #402D4C RGB: (64,45,76)

Color info

#402D4C contains red, green and blue colors in about the same proportion. Web safe color of #402D4C is #333333 (or #333).

RGB color model

#402D4C color RGB value is (64,45,76).

RGB: (64,45,76) (25%, 18%, 30%)

RGB channels and saturation

R 64 of 255 = 25%
G 45 of 255 = 18%
B 76 of 255 = 30%

64
45
76

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

Portions of RGB colors in percentages

R + G + B = 64 + 45 + 76 = 185 (100%)
R 64 of 185 ~ 34.59%
G 45 of 185 ~ 24.32%
B 76 of 185 ~ 41.08'%

%34.59
%24.32
%41.08

CMYK color model

#402D4C color CMYK value is (16,41,0,70).

  • cyan value is 15.79%
  • magenta value is 40.79%
  • yellow value is 0.00%
  • key color value is 70.20%

CMYK: (16,41,0,70)
C16M41Y0K70 (16%, 41%, 0%, 70%)
(0.16 / 0.41 / 0.00 / 0.70)

CMYK percentages

%15.79
%40.79
%0
%70.2

Codes

Color #402D4C in popluar color models

40 2D 4C
RGB 64 45 76
HSL 277° 25.62% 23.73%
HSB/HSV 277° 40.79% 29.80%
CMYK 15.79% 40.79% 0.00%
70.20%

Color #402D4C in popluar number systems.

HEX 40 2D 4C
Decimal 64 45 76
Binary 1000000 101101 1001100
Octal 100 55 114

Shades and tints

Shades of #402D4C

#402D4C
(64,45,76)
#3B2946
(59,41,70)
#362540
(54,37,64)
#31213A
(49,33,58)
#2C1D34
(44,29,52)
#27192E
(39,25,46)
#221528
(34,21,40)
#1D1122
(29,17,34)
#180D1C
(24,13,28)
#130916
(19,9,22)
#0E0510
(14,5,16)
#000000
(0,0,0)

Tints of #402D4C

#402D4C
(64,45,76)
#51405C
(81,64,92)
#62536C
(98,83,108)
#73667C
(115,102,124)
#84798C
(132,121,140)
#958C9C
(149,140,156)
#A69FAC
(166,159,172)
#B7B2BC
(183,178,188)
#C8C5CC
(200,197,204)
#D9D8DC
(217,216,220)
#EAEBEC
(234,235,236)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #402D4C color. Also use rgb(64,45,76) instead hex code.

Text Font Color

.myTextColor { color: #402D4C; }

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

This text font color is #402D4C.

Background Color

.myBgColor { background-color: #402D4C; }

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

This div background color is #402D4C.

Border color

.myBorderColor { border: 1px solid #402D4C; }

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

This div border color is #402D4C.

Opacity

.myOpacity80 { color: #402D4C; opacity: 0.8; }

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

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

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

This text has shadow with #402D4C color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #402D4C.

Preview

Color preview on black background

This text has color #402D4C on black background.


Color preview on white background

This text has color #402D4C on white background.


Black color preview on #402D4C background

This text has black color on #402D4C background.


White color preview on #402D4C background

This text has white color on #402D4C background.


Related colors

Complementary color

Complementary color for #hex is #BFD2B3.


I love getcolorcode.com

Triadic colors

1 #4C402D and #2D4C40 with #402D4C are triadic colors.

2 #4C2D40 and #2D404C with #402D4C are triadic colors.