COLOR #40405D

HEX: #40405D
RGB: (64,64,93)

Color info

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

RGB color model

#40405D color RGB value is (64,64,93).

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

RGB channels and saturation

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

64
64
93

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

Portions of RGB colors in percentages

R + G + B =
64 + 64 + 93 = 221 (100%)
R 64 of 221 ~ 28.96%
G 64 of 221 ~ 28.96%
B 93 of 221 ~ 42.08%

%28.96
%28.96
%42.08

CMYK color model

#40405D color CMYK value is (31,31,0,64).

  • cyan value is 31.18%
  • magenta value is 31.18%
  • yellow value is 0.00%
  • key color value is 63.53%
CMYK:
(31,31,0,64)
C31M31Y0K64 
(31%,31%,0%,64%)
(0.31/0.31/0.00/0.64)	

CMYK percentages

%31.18
%31.18
%0
%63.53

Codes

Color #40405D in popluar color models

40405D
RGB646493
HSL240°18.47%30.78%
HSB/HSV240°31.18%36.47%
CMYK31.18%31.18%0.00%
63.53%

Color #40405D in popluar number systems.

HEX40405D
Decimal646493
Binary100000010000001011101
Octal100100135

Shades and tints

Shades of #40405D

#40405D
(64,64,93)
#3B3B55
(59,59,85)
#36364D
(54,54,77)
#313145
(49,49,69)
#2C2C3D
(44,44,61)
#272735
(39,39,53)
#22222D
(34,34,45)
#1D1D25
(29,29,37)
#18181D
(24,24,29)
#131315
(19,19,21)
#0E0E0D
(14,14,13)
#000000
(0,0,0)

Tints of #40405D

#40405D
(64,64,93)
#51516B
(81,81,107)
#626279
(98,98,121)
#737387
(115,115,135)
#848495
(132,132,149)
#9595A3
(149,149,163)
#A6A6B1
(166,166,177)
#B7B7BF
(183,183,191)
#C8C8CD
(200,200,205)
#D9D9DB
(217,217,219)
#EAEAE9
(234,234,233)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #40405D; }

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

This text font color is #40405D.


Background Color

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

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

This div background color is #40405D.


Border color

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

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

This div border color is #40405D.


Opacity

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

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

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

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

This text has shadow with #40405D color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #40405D on black background.


Color preview on white background

This text has color #40405D on white background.



Black color preview on #40405D background

This text has black color on #40405D background.


White color preview on #40405D background

This text has white color on #40405D background.