COLOR #40304E

HEX: #40304E RGB: (64,48,78)

Color info

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

RGB color model

#40304E color RGB value is (64,48,78).

RGB: (64,48,78) (25%, 19%, 31%)

RGB channels and saturation

R 64 of 255 = 25%
G 48 of 255 = 19%
B 78 of 255 = 31%

64
48
78

R + G + B ~ 25%. #40304E is quite dark color.

Portions of RGB colors in percentages

R + G + B = 64 + 48 + 78 = 190 (100%)
R 64 of 190 ~ 33.68%
G 48 of 190 ~ 25.26%
B 78 of 190 ~ 41.05'%

%33.68
%25.26
%41.05

CMYK color model

#40304E color CMYK value is (18,38,0,69).

  • cyan value is 17.95%
  • magenta value is 38.46%
  • yellow value is 0.00%
  • key color value is 69.41%

CMYK: (18,38,0,69)
C18M38Y0K69 (18%, 38%, 0%, 69%)
(0.18 / 0.38 / 0.00 / 0.69)

CMYK percentages

%17.95
%38.46
%0
%69.41

Codes

Color #40304E in popluar color models

40 30 4E
RGB 64 48 78
HSL 272° 23.81% 24.71%
HSB/HSV 272° 38.46% 30.59%
CMYK 17.95% 38.46% 0.00%
69.41%

Color #40304E in popluar number systems.

HEX 40 30 4E
Decimal 64 48 78
Binary 1000000 110000 1001110
Octal 100 60 116

Shades and tints

Shades of #40304E

#40304E
(64,48,78)
#3B2C47
(59,44,71)
#362840
(54,40,64)
#312439
(49,36,57)
#2C2032
(44,32,50)
#271C2B
(39,28,43)
#221824
(34,24,36)
#1D141D
(29,20,29)
#181016
(24,16,22)
#130C0F
(19,12,15)
#0E0808
(14,8,8)
#000000
(0,0,0)

Tints of #40304E

#40304E
(64,48,78)
#51425E
(81,66,94)
#62546E
(98,84,110)
#73667E
(115,102,126)
#84788E
(132,120,142)
#958A9E
(149,138,158)
#A69CAE
(166,156,174)
#B7AEBE
(183,174,190)
#C8C0CE
(200,192,206)
#D9D2DE
(217,210,222)
#EAE4EE
(234,228,238)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #40304E color. Also use rgb(64,48,78) instead hex code.

Text Font Color

.myTextColor { color: #40304E; }

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

This text font color is #40304E.

Background Color

.myBgColor { background-color: #40304E; }

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

This div background color is #40304E.

Border color

.myBorderColor { border: 1px solid #40304E; }

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

This div border color is #40304E.

Opacity

.myOpacity80 { color: #40304E; opacity: 0.8; }

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

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

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

This text has shadow with #40304E color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #40304E.

Preview

Color preview on black background

This text has color #40304E on black background.


Color preview on white background

This text has color #40304E on white background.


Black color preview on #40304E background

This text has black color on #40304E background.


White color preview on #40304E background

This text has white color on #40304E background.


Related colors

Complementary color

Complementary color for #hex is #BFCFB1.


I love getcolorcode.com

Triadic colors

1 #4E4030 and #304E40 with #40304E are triadic colors.

2 #4E3040 and #30404E with #40304E are triadic colors.