COLOR #402D58

HEX: #402D58 RGB: (64,45,88)

Color info

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

RGB color model

#402D58 color RGB value is (64,45,88).

RGB: (64,45,88) (25%, 18%, 35%)

RGB channels and saturation

R 64 of 255 = 25%
G 45 of 255 = 18%
B 88 of 255 = 35%

64
45
88

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

Portions of RGB colors in percentages

R + G + B = 64 + 45 + 88 = 197 (100%)
R 64 of 197 ~ 32.49%
G 45 of 197 ~ 22.84%
B 88 of 197 ~ 44.67'%

%32.49
%22.84
%44.67

CMYK color model

#402D58 color CMYK value is (27,49,0,65).

  • cyan value is 27.27%
  • magenta value is 48.86%
  • yellow value is 0.00%
  • key color value is 65.49%

CMYK: (27,49,0,65)
C27M49Y0K65 (27%, 49%, 0%, 65%)
(0.27 / 0.49 / 0.00 / 0.65)

CMYK percentages

%27.27
%48.86
%0
%65.49

Codes

Color #402D58 in popluar color models

40 2D 58
RGB 64 45 88
HSL 267° 32.33% 26.08%
HSB/HSV 267° 48.86% 34.51%
CMYK 27.27% 48.86% 0.00%
65.49%

Color #402D58 in popluar number systems.

HEX 40 2D 58
Decimal 64 45 88
Binary 1000000 101101 1011000
Octal 100 55 130

Shades and tints

Shades of #402D58

#402D58
(64,45,88)
#3B2950
(59,41,80)
#362548
(54,37,72)
#312140
(49,33,64)
#2C1D38
(44,29,56)
#271930
(39,25,48)
#221528
(34,21,40)
#1D1120
(29,17,32)
#180D18
(24,13,24)
#130910
(19,9,16)
#0E0508
(14,5,8)
#000000
(0,0,0)

Tints of #402D58

#402D58
(64,45,88)
#514067
(81,64,103)
#625376
(98,83,118)
#736685
(115,102,133)
#847994
(132,121,148)
#958CA3
(149,140,163)
#A69FB2
(166,159,178)
#B7B2C1
(183,178,193)
#C8C5D0
(200,197,208)
#D9D8DF
(217,216,223)
#EAEBEE
(234,235,238)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #402D58; }

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

This text font color is #402D58.

Background Color

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

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

This div background color is #402D58.

Border color

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

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

This div border color is #402D58.

Opacity

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

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

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

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

This text has shadow with #402D58 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #402D58.

Preview

Color preview on black background

This text has color #402D58 on black background.


Color preview on white background

This text has color #402D58 on white background.


Black color preview on #402D58 background

This text has black color on #402D58 background.


White color preview on #402D58 background

This text has white color on #402D58 background.


Related colors

Complementary color

Complementary color for #hex is #BFD2A7.


I love getcolorcode.com

Triadic colors

1 #58402D and #2D5840 with #402D58 are triadic colors.

2 #582D40 and #2D4058 with #402D58 are triadic colors.