COLOR #400040

HEX: #400040
RGB: (64,0,64)

Color info

#400040 contains only red and blue colors. Web safe color of #400040 is #330033 (or #303).

RGB color model

#400040 color RGB value is (64,0,64).

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

RGB channels and saturation

R 64 of 255 = 25%
G 0 of 255 = 0%
B 64 of 255 = 25%

64
0
64

R + G + B ~ 17%. #400040 is dark color.

Portions of RGB colors in percentages

R + G + B =
64 + 0 + 64 = 128 (100%)
R 64 of 128 ~ 50%
G 0 of 128 ~ 0%
B 64 of 128 ~ 50%

%50
%50

CMYK color model

#400040 color CMYK value is (0,100,0,75).

  • cyan value is 0.00%
  • magenta value is 100.00%
  • yellow value is 0.00%
  • key color value is 74.90%
CMYK:
(0,100,0,75)
C0M100Y0K75 
(0%,100%,0%,75%)
(0.00/1.00/0.00/0.75)	

CMYK percentages

%0
%100
%0
%74.9

Codes

Color #400040 in popluar color models

400040
RGB64064
HSL300°100.00%12.55%
HSB/HSV300°100.00%25.10%
CMYK0.00%100.00%0.00%
74.90%

Color #400040 in popluar number systems.

HEX400040
Decimal64064
Binary100000001000000
Octal1000100

Shades and tints

Shades of #400040

#400040
(64,0,64)
#3B003B
(59,0,59)
#360036
(54,0,54)
#310031
(49,0,49)
#2C002C
(44,0,44)
#270027
(39,0,39)
#220022
(34,0,34)
#1D001D
(29,0,29)
#180018
(24,0,24)
#130013
(19,0,19)
#0E000E
(14,0,14)
#000000
(0,0,0)

Tints of #400040

#400040
(64,0,64)
#511751
(81,23,81)
#622E62
(98,46,98)
#734573
(115,69,115)
#845C84
(132,92,132)
#957395
(149,115,149)
#A68AA6
(166,138,166)
#B7A1B7
(183,161,183)
#C8B8C8
(200,184,200)
#D9CFD9
(217,207,217)
#EAE6EA
(234,230,234)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #400040; }

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

This text font color is #400040.


Background Color

.myBgColor { background-color: #400040; }

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

This div background color is #400040.


Border color

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

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

This div border color is #400040.


Opacity

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

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

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

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

This text has shadow with #400040 color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #400040 on black background.


Color preview on white background

This text has color #400040 on white background.



Black color preview on #400040 background

This text has black color on #400040 background.


White color preview on #400040 background

This text has white color on #400040 background.