COLOR #04009D

HEX: #04009D
RGB: (4,0,157)

Color info

#04009D contains mainly blue color. Web safe color of #04009D is #000099 (or #009).

RGB color model

#04009D color RGB value is (4,0,157).

  • red value is 4;
  • green value is 0;
  • blue value is 157.
RGB:
(4,0,157)
(2%,0%,62%)

RGB channels and saturation

R 4 of 255 = 2%
G 0 of 255 = 0%
B 157 of 255 = 62%

4
0
157

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

Portions of RGB colors in percentages

R + G + B =
4 + 0 + 157 = 161 (100%)
R 4 of 161 ~ 2.48%
G 0 of 161 ~ 0%
B 157 of 161 ~ 97.52%

%97.52

CMYK color model

#04009D color CMYK value is (97,100,0,38).

  • cyan value is 97.45%
  • magenta value is 100.00%
  • yellow value is 0.00%
  • key color value is 38.43%
CMYK:
(97,100,0,38)
C97M100Y0K38 
(97%,100%,0%,38%)
(0.97/1.00/0.00/0.38)	

CMYK percentages

%97.45
%100
%0
%38.43

Codes

Color #04009D in popluar color models

04009D
RGB40157
HSL242°100.00%30.78%
HSB/HSV242°100.00%61.57%
CMYK97.45%100.00%0.00%
38.43%

Color #04009D in popluar number systems.

HEX04009D
Decimal40157
Binary100010011101
Octal40235

Shades and tints

Shades of #04009D

#04009D
(4,0,157)
#04008F
(4,0,143)
#040081
(4,0,129)
#040073
(4,0,115)
#040065
(4,0,101)
#040057
(4,0,87)
#040049
(4,0,73)
#04003B
(4,0,59)
#04002D
(4,0,45)
#04001F
(4,0,31)
#040011
(4,0,17)
#000000
(0,0,0)

Tints of #04009D

#04009D
(4,0,157)
#1A17A5
(26,23,165)
#302EAD
(48,46,173)
#4645B5
(70,69,181)
#5C5CBD
(92,92,189)
#7273C5
(114,115,197)
#888ACD
(136,138,205)
#9EA1D5
(158,161,213)
#B4B8DD
(180,184,221)
#CACFE5
(202,207,229)
#E0E6ED
(224,230,237)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #04009D color. Also use rgb(4,0,157) instead hex code.

Text Font Color

.myTextColor { color: #04009D; }

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

This text font color is #04009D.


Background Color

.myBgColor { background-color: #04009D; }

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

This div background color is #04009D.


Border color

.myBorderColor { border: 1px solid #04009D; }

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

This div border color is #04009D.


Opacity

.myOpacity80 { color: #04009D; opacity: 0.8; }

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

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

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

This text has shadow with #04009D color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #04009D on black background.


Color preview on white background

This text has color #04009D on white background.



Black color preview on #04009D background

This text has black color on #04009D background.


White color preview on #04009D background

This text has white color on #04009D background.