COLOR #042242

HEX: #042242 RGB: (4,34,66)

Color info

#042242 contains mainly green and blue colors. Web safe color of #042242 is #003333 (or #033).

RGB color model

#042242 color RGB value is (4,34,66).

RGB: (4,34,66) (2%, 13%, 26%)

RGB channels and saturation

R 4 of 255 = 2%
G 34 of 255 = 13%
B 66 of 255 = 26%

4
34
66

R + G + B ~ 14%. #042242 is dark color.

Portions of RGB colors in percentages

R + G + B = 4 + 34 + 66 = 104 (100%)
R 4 of 104 ~ 3.85%
G 34 of 104 ~ 32.69%
B 66 of 104 ~ 63.46'%

%32.69
%63.46

CMYK color model

#042242 color CMYK value is (94,48,0,74).

  • cyan value is 93.94%
  • magenta value is 48.48%
  • yellow value is 0.00%
  • key color value is 74.12%

CMYK: (94,48,0,74)
C94M48Y0K74 (94%, 48%, 0%, 74%)
(0.94 / 0.48 / 0.00 / 0.74)

CMYK percentages

%93.94
%48.48
%0
%74.12

Codes

Color #042242 in popluar color models

04 22 42
RGB 4 34 66
HSL 211° 88.57% 13.73%
HSB/HSV 211° 93.94% 25.88%
CMYK 93.94% 48.48% 0.00%
74.12%

Color #042242 in popluar number systems.

HEX 04 22 42
Decimal 4 34 66
Binary 100 100010 1000010
Octal 4 42 102

Shades and tints

Shades of #042242

#042242
(4,34,66)
#041F3C
(4,31,60)
#041C36
(4,28,54)
#041930
(4,25,48)
#04162A
(4,22,42)
#041324
(4,19,36)
#04101E
(4,16,30)
#040D18
(4,13,24)
#040A12
(4,10,18)
#04070C
(4,7,12)
#040406
(4,4,6)
#000000
(0,0,0)

Tints of #042242

#042242
(4,34,66)
#1A3653
(26,54,83)
#304A64
(48,74,100)
#465E75
(70,94,117)
#5C7286
(92,114,134)
#728697
(114,134,151)
#889AA8
(136,154,168)
#9EAEB9
(158,174,185)
#B4C2CA
(180,194,202)
#CAD6DB
(202,214,219)
#E0EAEC
(224,234,236)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #042242 color. Also use rgb(4,34,66) instead hex code.

Text Font Color

.myTextColor { color: #042242; }

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

This text font color is #042242.

Background Color

.myBgColor { background-color: #042242; }

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

This div background color is #042242.

Border color

.myBorderColor { border: 1px solid #042242; }

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

This div border color is #042242.

Opacity

.myOpacity80 { color: #042242; opacity: 0.8; }

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

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

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

This text has shadow with #042242 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #042242.

Preview

Color preview on black background

This text has color #042242 on black background.


Color preview on white background

This text has color #042242 on white background.


Black color preview on #042242 background

This text has black color on #042242 background.


White color preview on #042242 background

This text has white color on #042242 background.


Related colors

Complementary color

Complementary color for #hex is #FBDDBD.


I love getcolorcode.com

Triadic colors

1 #420422 and #224204 with #042242 are triadic colors.

2 #422204 and #220442 with #042242 are triadic colors.