COLOR #042A7D

HEX: #042A7D
RGB: (4,42,125)

Color info

#042A7D contains mainly blue color. Web safe color of #042A7D is #003366 (or #036).

RGB color model

#042A7D color RGB value is (4,42,125).

  • red value is 4;
  • green value is 42;
  • blue value is 125.
RGB:
(4,42,125)
(2%,16%,49%)

RGB channels and saturation

R 4 of 255 = 2%
G 42 of 255 = 16%
B 125 of 255 = 49%

4
42
125

R + G + B ~ 22%. #042A7D is dark color.

Portions of RGB colors in percentages

R + G + B =
4 + 42 + 125 = 171 (100%)
R 4 of 171 ~ 2.34%
G 42 of 171 ~ 24.56%
B 125 of 171 ~ 73.1%

%24.56
%73.1

CMYK color model

#042A7D color CMYK value is (97,66,0,51).

  • cyan value is 96.80%
  • magenta value is 66.40%
  • yellow value is 0.00%
  • key color value is 50.98%
CMYK:
(97,66,0,51)
C97M66Y0K51 
(97%,66%,0%,51%)
(0.97/0.66/0.00/0.51)	

CMYK percentages

%96.8
%66.4
%0
%50.98

Codes

Color #042A7D in popluar color models

042A7D
RGB442125
HSL221°93.80%25.29%
HSB/HSV221°96.80%49.02%
CMYK96.80%66.40%0.00%
50.98%

Color #042A7D in popluar number systems.

HEX042A7D
Decimal442125
Binary1001010101111101
Octal452175

Shades and tints

Shades of #042A7D

#042A7D
(4,42,125)
#042772
(4,39,114)
#042467
(4,36,103)
#04215C
(4,33,92)
#041E51
(4,30,81)
#041B46
(4,27,70)
#04183B
(4,24,59)
#041530
(4,21,48)
#041225
(4,18,37)
#040F1A
(4,15,26)
#040C0F
(4,12,15)
#000000
(0,0,0)

Tints of #042A7D

#042A7D
(4,42,125)
#1A3D88
(26,61,136)
#305093
(48,80,147)
#46639E
(70,99,158)
#5C76A9
(92,118,169)
#7289B4
(114,137,180)
#889CBF
(136,156,191)
#9EAFCA
(158,175,202)
#B4C2D5
(180,194,213)
#CAD5E0
(202,213,224)
#E0E8EB
(224,232,235)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #042A7D color. Also use rgb(4,42,125) instead hex code.

Text Font Color

.myTextColor { color: #042A7D; }

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

This text font color is #042A7D.


Background Color

.myBgColor { background-color: #042A7D; }

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

This div background color is #042A7D.


Border color

.myBorderColor { border: 1px solid #042A7D; }

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

This div border color is #042A7D.


Opacity

.myOpacity80 { color: #042A7D; opacity: 0.8; }

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

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

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

This text has shadow with #042A7D color.

.textShadow {text-shadow: 3px 3px 1px #042A7D, 3px 3px 1px red;}

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #042A7D on black background.


Color preview on white background

This text has color #042A7D on white background.



Black color preview on #042A7D background

This text has black color on #042A7D background.


White color preview on #042A7D background

This text has white color on #042A7D background.