COLOR #40405F

HEX: #40405F RGB: (64,64,95)

Color info

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

RGB color model

#40405F color RGB value is (64,64,95).

RGB: (64,64,95) (25%, 25%, 37%)

RGB channels and saturation

R 64 of 255 = 25%
G 64 of 255 = 25%
B 95 of 255 = 37%

64
64
95

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

Portions of RGB colors in percentages

R + G + B = 64 + 64 + 95 = 223 (100%)
R 64 of 223 ~ 28.7%
G 64 of 223 ~ 28.7%
B 95 of 223 ~ 42.6'%

%28.7
%28.7
%42.6

CMYK color model

#40405F color CMYK value is (33,33,0,63).

  • cyan value is 32.63%
  • magenta value is 32.63%
  • yellow value is 0.00%
  • key color value is 62.75%

CMYK: (33,33,0,63)
C33M33Y0K63 (33%, 33%, 0%, 63%)
(0.33 / 0.33 / 0.00 / 0.63)

CMYK percentages

%32.63
%32.63
%0
%62.75

Codes

Color #40405F in popluar color models

40 40 5F
RGB 64 64 95
HSL 240° 19.50% 31.18%
HSB/HSV 240° 32.63% 37.25%
CMYK 32.63% 32.63% 0.00%
62.75%

Color #40405F in popluar number systems.

HEX 40 40 5F
Decimal 64 64 95
Binary 1000000 1000000 1011111
Octal 100 100 137

Shades and tints

Shades of #40405F

#40405F
(64,64,95)
#3B3B57
(59,59,87)
#36364F
(54,54,79)
#313147
(49,49,71)
#2C2C3F
(44,44,63)
#272737
(39,39,55)
#22222F
(34,34,47)
#1D1D27
(29,29,39)
#18181F
(24,24,31)
#131317
(19,19,23)
#0E0E0F
(14,14,15)
#000000
(0,0,0)

Tints of #40405F

#40405F
(64,64,95)
#51516D
(81,81,109)
#62627B
(98,98,123)
#737389
(115,115,137)
#848497
(132,132,151)
#9595A5
(149,149,165)
#A6A6B3
(166,166,179)
#B7B7C1
(183,183,193)
#C8C8CF
(200,200,207)
#D9D9DD
(217,217,221)
#EAEAEB
(234,234,235)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #40405F color. Also use rgb(64,64,95) instead hex code.

Text Font Color

.myTextColor { color: #40405F; }

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

This text font color is #40405F.

Background Color

.myBgColor { background-color: #40405F; }

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

This div background color is #40405F.

Border color

.myBorderColor { border: 1px solid #40405F; }

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

This div border color is #40405F.

Opacity

.myOpacity80 { color: #40405F; opacity: 0.8; }

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

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

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

This text has shadow with #40405F color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #40405F.

Preview

Color preview on black background

This text has color #40405F on black background.


Color preview on white background

This text has color #40405F on white background.


Black color preview on #40405F background

This text has black color on #40405F background.


White color preview on #40405F background

This text has white color on #40405F background.


Related colors

Complementary color

Complementary color for #hex is #BFBFA0.


I love getcolorcode.com