COLOR #402748

HEX: #402748 RGB: (64,39,72)

Color info

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

RGB color model

#402748 color RGB value is (64,39,72).

RGB: (64,39,72) (25%, 15%, 28%)

RGB channels and saturation

R 64 of 255 = 25%
G 39 of 255 = 15%
B 72 of 255 = 28%

64
39
72

R + G + B ~ 23%. #402748 is dark color.

Portions of RGB colors in percentages

R + G + B = 64 + 39 + 72 = 175 (100%)
R 64 of 175 ~ 36.57%
G 39 of 175 ~ 22.29%
B 72 of 175 ~ 41.14'%

%36.57
%22.29
%41.14

CMYK color model

#402748 color CMYK value is (11,46,0,72).

  • cyan value is 11.11%
  • magenta value is 45.83%
  • yellow value is 0.00%
  • key color value is 71.76%
CMYK: (11,46,0,72) C11M46Y0K72 (11%,46%,0%,72%) (0.11/0.46/0.00/0.72) 

CMYK percentages

%11.11
%45.83
%0
%71.76

Codes

Color #402748 in popluar color models

40 27 48
RGB 64 39 72
HSL 285° 29.73% 21.76%
HSB/HSV 285° 45.83% 28.24%
CMYK 11.11% 45.83% 0.00%
71.76%

Color #402748 in popluar number systems.

HEX 40 27 48
Decimal 64 39 72
Binary 1000000 100111 1001000
Octal 100 47 110

Shades and tints

Shades of #402748

#402748
(64,39,72)
#3B2442
(59,36,66)
#36213C
(54,33,60)
#311E36
(49,30,54)
#2C1B30
(44,27,48)
#27182A
(39,24,42)
#221524
(34,21,36)
#1D121E
(29,18,30)
#180F18
(24,15,24)
#130C12
(19,12,18)
#0E090C
(14,9,12)
#000000
(0,0,0)

Tints of #402748

#402748
(64,39,72)
#513A58
(81,58,88)
#624D68
(98,77,104)
#736078
(115,96,120)
#847388
(132,115,136)
#958698
(149,134,152)
#A699A8
(166,153,168)
#B7ACB8
(183,172,184)
#C8BFC8
(200,191,200)
#D9D2D8
(217,210,216)
#EAE5E8
(234,229,232)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #402748; }

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

This text font color is #402748.

Background Color

.myBgColor { background-color: #402748; }

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

This div background color is #402748.

Border color

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

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

This div border color is #402748.

Opacity

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

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

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

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

This text has shadow with #402748 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #402748.

Preview

Color preview on black background

This text has color #402748 on black background.


Color preview on white background

This text has color #402748 on white background.


Black color preview on #402748 background

This text has black color on #402748 background.


White color preview on #402748 background

This text has white color on #402748 background.


Related colors

Complementary color

Complementary color for #hex is #BFD8B7.


I love getcolorcode.com

Triadic colors

1 #484027 and #274840 with #402748 are triadic colors.

2 #482740 and #274048 with #402748 are triadic colors.