COLOR #40406F

HEX: #40406F
RGB: (64,64,111)

Color info

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

RGB color model

#40406F color RGB value is (64,64,111).

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

RGB channels and saturation

R 64 of 255 = 25%
G 64 of 255 = 25%
B 111 of 255 = 44%

64
64
111

R + G + B ~ 31%. #40406F is quite dark color.

Portions of RGB colors in percentages

R + G + B =
64 + 64 + 111 = 239 (100%)
R 64 of 239 ~ 26.78%
G 64 of 239 ~ 26.78%
B 111 of 239 ~ 46.44%

%26.78
%26.78
%46.44

CMYK color model

#40406F color CMYK value is (42,42,0,56).

  • cyan value is 42.34%
  • magenta value is 42.34%
  • yellow value is 0.00%
  • key color value is 56.47%
CMYK:
(42,42,0,56)
C42M42Y0K56 
(42%,42%,0%,56%)
(0.42/0.42/0.00/0.56)	

CMYK percentages

%42.34
%42.34
%0
%56.47

Codes

Color #40406F in popluar color models

40406F
RGB6464111
HSL240°26.86%34.31%
HSB/HSV240°42.34%43.53%
CMYK42.34%42.34%0.00%
56.47%

Color #40406F in popluar number systems.

HEX40406F
Decimal6464111
Binary100000010000001101111
Octal100100157

Shades and tints

Shades of #40406F

#40406F
(64,64,111)
#3B3B65
(59,59,101)
#36365B
(54,54,91)
#313151
(49,49,81)
#2C2C47
(44,44,71)
#27273D
(39,39,61)
#222233
(34,34,51)
#1D1D29
(29,29,41)
#18181F
(24,24,31)
#131315
(19,19,21)
#0E0E0B
(14,14,11)
#000000
(0,0,0)

Tints of #40406F

#40406F
(64,64,111)
#51517C
(81,81,124)
#626289
(98,98,137)
#737396
(115,115,150)
#8484A3
(132,132,163)
#9595B0
(149,149,176)
#A6A6BD
(166,166,189)
#B7B7CA
(183,183,202)
#C8C8D7
(200,200,215)
#D9D9E4
(217,217,228)
#EAEAF1
(234,234,241)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #40406F; }

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

This text font color is #40406F.


Background Color

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

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

This div background color is #40406F.


Border color

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

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

This div border color is #40406F.


Opacity

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

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

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

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

This text has shadow with #40406F color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #40406F on black background.


Color preview on white background

This text has color #40406F on white background.



Black color preview on #40406F background

This text has black color on #40406F background.


White color preview on #40406F background

This text has white color on #40406F background.