COLOR #40405B

HEX: #40405B
RGB: (64,64,91)

Color info

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

RGB color model

#40405B color RGB value is (64,64,91).

  • red value is 64;
  • green value is 64;
  • blue value is 91.
RGB:
(64,64,91)
(25%,25%,36%)

RGB channels and saturation

R 64 of 255 = 25%
G 64 of 255 = 25%
B 91 of 255 = 36%

64
64
91

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

Portions of RGB colors in percentages

R + G + B =
64 + 64 + 91 = 219 (100%)
R 64 of 219 ~ 29.22%
G 64 of 219 ~ 29.22%
B 91 of 219 ~ 41.55%

%29.22
%29.22
%41.55

CMYK color model

#40405B color CMYK value is (30,30,0,64).

  • cyan value is 29.67%
  • magenta value is 29.67%
  • yellow value is 0.00%
  • key color value is 64.31%
CMYK:
(30,30,0,64)
C30M30Y0K64 
(30%,30%,0%,64%)
(0.30/0.30/0.00/0.64)	

CMYK percentages

%29.67
%29.67
%0
%64.31

Codes

Color #40405B in popluar color models

40405B
RGB646491
HSL240°17.42%30.39%
HSB/HSV240°29.67%35.69%
CMYK29.67%29.67%0.00%
64.31%

Color #40405B in popluar number systems.

HEX40405B
Decimal646491
Binary100000010000001011011
Octal100100133

Shades and tints

Shades of #40405B

#40405B
(64,64,91)
#3B3B53
(59,59,83)
#36364B
(54,54,75)
#313143
(49,49,67)
#2C2C3B
(44,44,59)
#272733
(39,39,51)
#22222B
(34,34,43)
#1D1D23
(29,29,35)
#18181B
(24,24,27)
#131313
(19,19,19)
#0E0E0B
(14,14,11)
#000000
(0,0,0)

Tints of #40405B

#40405B
(64,64,91)
#515169
(81,81,105)
#626277
(98,98,119)
#737385
(115,115,133)
#848493
(132,132,147)
#9595A1
(149,149,161)
#A6A6AF
(166,166,175)
#B7B7BD
(183,183,189)
#C8C8CB
(200,200,203)
#D9D9D9
(217,217,217)
#EAEAE7
(234,234,231)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #40405B; }

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

This text font color is #40405B.


Background Color

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

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

This div background color is #40405B.


Border color

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

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

This div border color is #40405B.


Opacity

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

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

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

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

This text has shadow with #40405B color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #40405B on black background.


Color preview on white background

This text has color #40405B on white background.



Black color preview on #40405B background

This text has black color on #40405B background.


White color preview on #40405B background

This text has white color on #40405B background.