COLOR #403171

HEX: #403171 RGB: (64,49,113)

Color info

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

RGB color model

#403171 color RGB value is (64,49,113).

RGB: (64,49,113) (25%, 19%, 44%)

RGB channels and saturation

R 64 of 255 = 25%
G 49 of 255 = 19%
B 113 of 255 = 44%

64
49
113

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

Portions of RGB colors in percentages

R + G + B = 64 + 49 + 113 = 226 (100%)
R 64 of 226 ~ 28.32%
G 49 of 226 ~ 21.68%
B 113 of 226 ~ 50'%

%28.32
%21.68
%50

CMYK color model

#403171 color CMYK value is (43,57,0,56).

  • cyan value is 43.36%
  • magenta value is 56.64%
  • yellow value is 0.00%
  • key color value is 55.69%

CMYK: (43,57,0,56)
C43M57Y0K56 (43%, 57%, 0%, 56%)
(0.43 / 0.57 / 0.00 / 0.56)

CMYK percentages

%43.36
%56.64
%0
%55.69

Codes

Color #403171 in popluar color models

40 31 71
RGB 64 49 113
HSL 254° 39.51% 31.76%
HSB/HSV 254° 56.64% 44.31%
CMYK 43.36% 56.64% 0.00%
55.69%

Color #403171 in popluar number systems.

HEX 40 31 71
Decimal 64 49 113
Binary 1000000 110001 1110001
Octal 100 61 161

Shades and tints

Shades of #403171

#403171
(64,49,113)
#3B2D67
(59,45,103)
#36295D
(54,41,93)
#312553
(49,37,83)
#2C2149
(44,33,73)
#271D3F
(39,29,63)
#221935
(34,25,53)
#1D152B
(29,21,43)
#181121
(24,17,33)
#130D17
(19,13,23)
#0E090D
(14,9,13)
#000000
(0,0,0)

Tints of #403171

#403171
(64,49,113)
#51437D
(81,67,125)
#625589
(98,85,137)
#736795
(115,103,149)
#8479A1
(132,121,161)
#958BAD
(149,139,173)
#A69DB9
(166,157,185)
#B7AFC5
(183,175,197)
#C8C1D1
(200,193,209)
#D9D3DD
(217,211,221)
#EAE5E9
(234,229,233)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #403171 color. Also use rgb(64,49,113) instead hex code.

Text Font Color

.myTextColor { color: #403171; }

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

This text font color is #403171.

Background Color

.myBgColor { background-color: #403171; }

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

This div background color is #403171.

Border color

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

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

This div border color is #403171.

Opacity

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

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

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

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

This text has shadow with #403171 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #403171.

Preview

Color preview on black background

This text has color #403171 on black background.


Color preview on white background

This text has color #403171 on white background.


Black color preview on #403171 background

This text has black color on #403171 background.


White color preview on #403171 background

This text has white color on #403171 background.


Related colors

Complementary color

Complementary color for #hex is #BFCE8E.


I love getcolorcode.com

Triadic colors

1 #714031 and #317140 with #403171 are triadic colors.

2 #713140 and #314071 with #403171 are triadic colors.