COLOR #40304C

HEX: #40304C
RGB: (64,48,76)

Color info

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

RGB color model

#40304C color RGB value is (64,48,76).

  • red value is 64;
  • green value is 48;
  • blue value is 76.
RGB:
(64,48,76)
(25%,19%,30%)

RGB channels and saturation

R 64 of 255 = 25%
G 48 of 255 = 19%
B 76 of 255 = 30%

64
48
76

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

Portions of RGB colors in percentages

R + G + B =
64 + 48 + 76 = 188 (100%)
R 64 of 188 ~ 34.04%
G 48 of 188 ~ 25.53%
B 76 of 188 ~ 40.43%

%34.04
%25.53
%40.43

CMYK color model

#40304C color CMYK value is (16,37,0,70).

  • cyan value is 15.79%
  • magenta value is 36.84%
  • yellow value is 0.00%
  • key color value is 70.20%
CMYK:
(16,37,0,70)
C16M37Y0K70 
(16%,37%,0%,70%)
(0.16/0.37/0.00/0.70)	

CMYK percentages

%15.79
%36.84
%0
%70.2

Codes

Color #40304C in popluar color models

40304C
RGB644876
HSL274°22.58%24.31%
HSB/HSV274°36.84%29.80%
CMYK15.79%36.84%0.00%
70.20%

Color #40304C in popluar number systems.

HEX40304C
Decimal644876
Binary10000001100001001100
Octal10060114

Shades and tints

Shades of #40304C

#40304C
(64,48,76)
#3B2C46
(59,44,70)
#362840
(54,40,64)
#31243A
(49,36,58)
#2C2034
(44,32,52)
#271C2E
(39,28,46)
#221828
(34,24,40)
#1D1422
(29,20,34)
#18101C
(24,16,28)
#130C16
(19,12,22)
#0E0810
(14,8,16)
#000000
(0,0,0)

Tints of #40304C

#40304C
(64,48,76)
#51425C
(81,66,92)
#62546C
(98,84,108)
#73667C
(115,102,124)
#84788C
(132,120,140)
#958A9C
(149,138,156)
#A69CAC
(166,156,172)
#B7AEBC
(183,174,188)
#C8C0CC
(200,192,204)
#D9D2DC
(217,210,220)
#EAE4EC
(234,228,236)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #40304C; }

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

This text font color is #40304C.


Background Color

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

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

This div background color is #40304C.


Border color

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

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

This div border color is #40304C.


Opacity

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

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

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

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

This text has shadow with #40304C color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #40304C on black background.


Color preview on white background

This text has color #40304C on white background.



Black color preview on #40304C background

This text has black color on #40304C background.


White color preview on #40304C background

This text has white color on #40304C background.