COLOR #402140

HEX: #402140
RGB: (64,33,64)

Color info

#402140 contains red, green and blue colors in about the same proportion. Web safe color of #402140 is #333333 (or #333).

RGB color model

#402140 color RGB value is (64,33,64).

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

RGB channels and saturation

R 64 of 255 = 25%
G 33 of 255 = 13%
B 64 of 255 = 25%

64
33
64

R + G + B ~ 21%. #402140 is dark color.

Portions of RGB colors in percentages

R + G + B =
64 + 33 + 64 = 161 (100%)
R 64 of 161 ~ 39.75%
G 33 of 161 ~ 20.5%
B 64 of 161 ~ 39.75%

%39.75
%20.5
%39.75

CMYK color model

#402140 color CMYK value is (0,48,0,75).

  • cyan value is 0.00%
  • magenta value is 48.44%
  • yellow value is 0.00%
  • key color value is 74.90%
CMYK:
(0,48,0,75)
C0M48Y0K75 
(0%,48%,0%,75%)
(0.00/0.48/0.00/0.75)	

CMYK percentages

%0
%48.44
%0
%74.9

Codes

Color #402140 in popluar color models

402140
RGB643364
HSL300°31.96%19.02%
HSB/HSV300°48.44%25.10%
CMYK0.00%48.44%0.00%
74.90%

Color #402140 in popluar number systems.

HEX402140
Decimal643364
Binary10000001000011000000
Octal10041100

Shades and tints

Shades of #402140

#402140
(64,33,64)
#3B1E3B
(59,30,59)
#361B36
(54,27,54)
#311831
(49,24,49)
#2C152C
(44,21,44)
#271227
(39,18,39)
#220F22
(34,15,34)
#1D0C1D
(29,12,29)
#180918
(24,9,24)
#130613
(19,6,19)
#0E030E
(14,3,14)
#000000
(0,0,0)

Tints of #402140

#402140
(64,33,64)
#513551
(81,53,81)
#624962
(98,73,98)
#735D73
(115,93,115)
#847184
(132,113,132)
#958595
(149,133,149)
#A699A6
(166,153,166)
#B7ADB7
(183,173,183)
#C8C1C8
(200,193,200)
#D9D5D9
(217,213,217)
#EAE9EA
(234,233,234)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #402140; }

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

This text font color is #402140.


Background Color

.myBgColor { background-color: #402140; }

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

This div background color is #402140.


Border color

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

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

This div border color is #402140.


Opacity

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

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

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

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

This text has shadow with #402140 color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #402140 on black background.


Color preview on white background

This text has color #402140 on white background.



Black color preview on #402140 background

This text has black color on #402140 background.


White color preview on #402140 background

This text has white color on #402140 background.