COLOR #042F7A

HEX: #042F7A RGB: (4,47,122)

Color info

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

RGB color model

#042F7A color RGB value is (4,47,122).

RGB: (4,47,122) (2%, 18%, 48%)

RGB channels and saturation

R 4 of 255 = 2%
G 47 of 255 = 18%
B 122 of 255 = 48%

4
47
122

R + G + B ~ 23%. #042F7A is dark color.

Portions of RGB colors in percentages

R + G + B = 4 + 47 + 122 = 173 (100%)
R 4 of 173 ~ 2.31%
G 47 of 173 ~ 27.17%
B 122 of 173 ~ 70.52'%

%27.17
%70.52

CMYK color model

#042F7A color CMYK value is (97,61,0,52).

  • cyan value is 96.72%
  • magenta value is 61.48%
  • yellow value is 0.00%
  • key color value is 52.16%

CMYK: (97,61,0,52)
C97M61Y0K52 (97%, 61%, 0%, 52%)
(0.97 / 0.61 / 0.00 / 0.52)

CMYK percentages

%96.72
%61.48
%0
%52.16

Codes

Color #042F7A in popluar color models

04 2F 7A
RGB 4 47 122
HSL 218° 93.65% 24.71%
HSB/HSV 218° 96.72% 47.84%
CMYK 96.72% 61.48% 0.00%
52.16%

Color #042F7A in popluar number systems.

HEX 04 2F 7A
Decimal 4 47 122
Binary 100 101111 1111010
Octal 4 57 172

Shades and tints

Shades of #042F7A

#042F7A
(4,47,122)
#042B6F
(4,43,111)
#042764
(4,39,100)
#042359
(4,35,89)
#041F4E
(4,31,78)
#041B43
(4,27,67)
#041738
(4,23,56)
#04132D
(4,19,45)
#040F22
(4,15,34)
#040B17
(4,11,23)
#04070C
(4,7,12)
#000000
(0,0,0)

Tints of #042F7A

#042F7A
(4,47,122)
#1A4186
(26,65,134)
#305392
(48,83,146)
#46659E
(70,101,158)
#5C77AA
(92,119,170)
#7289B6
(114,137,182)
#889BC2
(136,155,194)
#9EADCE
(158,173,206)
#B4BFDA
(180,191,218)
#CAD1E6
(202,209,230)
#E0E3F2
(224,227,242)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #042F7A color. Also use rgb(4,47,122) instead hex code.

Text Font Color

.myTextColor { color: #042F7A; }

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

This text font color is #042F7A.

Background Color

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

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

This div background color is #042F7A.

Border color

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

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

This div border color is #042F7A.

Opacity

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

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

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

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

This text has shadow with #042F7A color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #042F7A.

Preview

Color preview on black background

This text has color #042F7A on black background.


Color preview on white background

This text has color #042F7A on white background.


Black color preview on #042F7A background

This text has black color on #042F7A background.


White color preview on #042F7A background

This text has white color on #042F7A background.


Related colors

Complementary color

Complementary color for #hex is #FBD085.


I love getcolorcode.com

Triadic colors

1 #7A042F and #2F7A04 with #042F7A are triadic colors.

2 #7A2F04 and #2F047A with #042F7A are triadic colors.