COLOR #400C8E

HEX: #400C8E
RGB: (64,12,142)

Color info

#400C8E contains mainly blue color. Web safe color of #400C8E is #330099 (or #309).

RGB color model

#400C8E color RGB value is (64,12,142).

  • red value is 64;
  • green value is 12;
  • blue value is 142.
RGB:
(64,12,142)
(25%,5%,56%)

RGB channels and saturation

R 64 of 255 = 25%
G 12 of 255 = 5%
B 142 of 255 = 56%

64
12
142

R + G + B ~ 29%. #400C8E is quite dark color.

Portions of RGB colors in percentages

R + G + B =
64 + 12 + 142 = 218 (100%)
R 64 of 218 ~ 29.36%
G 12 of 218 ~ 5.5%
B 142 of 218 ~ 65.14%

%29.36
%65.14

CMYK color model

#400C8E color CMYK value is (55,92,0,44).

  • cyan value is 54.93%
  • magenta value is 91.55%
  • yellow value is 0.00%
  • key color value is 44.31%
CMYK:
(55,92,0,44)
C55M92Y0K44 
(55%,92%,0%,44%)
(0.55/0.92/0.00/0.44)	

CMYK percentages

%54.93
%91.55
%0
%44.31

Codes

Color #400C8E in popluar color models

400C8E
RGB6412142
HSL264°84.42%30.20%
HSB/HSV264°91.55%55.69%
CMYK54.93%91.55%0.00%
44.31%

Color #400C8E in popluar number systems.

HEX400C8E
Decimal6412142
Binary1000000110010001110
Octal10014216

Shades and tints

Shades of #400C8E

#400C8E
(64,12,142)
#3B0B82
(59,11,130)
#360A76
(54,10,118)
#31096A
(49,9,106)
#2C085E
(44,8,94)
#270752
(39,7,82)
#220646
(34,6,70)
#1D053A
(29,5,58)
#18042E
(24,4,46)
#130322
(19,3,34)
#0E0216
(14,2,22)
#000000
(0,0,0)

Tints of #400C8E

#400C8E
(64,12,142)
#512298
(81,34,152)
#6238A2
(98,56,162)
#734EAC
(115,78,172)
#8464B6
(132,100,182)
#957AC0
(149,122,192)
#A690CA
(166,144,202)
#B7A6D4
(183,166,212)
#C8BCDE
(200,188,222)
#D9D2E8
(217,210,232)
#EAE8F2
(234,232,242)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #400C8E color. Also use rgb(64,12,142) instead hex code.

Text Font Color

.myTextColor { color: #400C8E; }

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

This text font color is #400C8E.


Background Color

.myBgColor { background-color: #400C8E; }

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

This div background color is #400C8E.


Border color

.myBorderColor { border: 1px solid #400C8E; }

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

This div border color is #400C8E.


Opacity

.myOpacity80 { color: #400C8E; opacity: 0.8; }

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

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

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

This text has shadow with #400C8E color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #400C8E on black background.


Color preview on white background

This text has color #400C8E on white background.



Black color preview on #400C8E background

This text has black color on #400C8E background.


White color preview on #400C8E background

This text has white color on #400C8E background.