COLOR #042240

HEX: #042240
RGB: (4,34,64)

Color info

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

RGB color model

#042240 color RGB value is (4,34,64).

  • red value is 4;
  • green value is 34;
  • blue value is 64.
RGB:
(4,34,64)
(2%,13%,25%)

RGB channels and saturation

R 4 of 255 = 2%
G 34 of 255 = 13%
B 64 of 255 = 25%

4
34
64

R + G + B ~ 13%. #042240 is dark color.

Portions of RGB colors in percentages

R + G + B =
4 + 34 + 64 = 102 (100%)
R 4 of 102 ~ 3.92%
G 34 of 102 ~ 33.33%
B 64 of 102 ~ 62.75%

%33.33
%62.75

CMYK color model

#042240 color CMYK value is (94,47,0,75).

  • cyan value is 93.75%
  • magenta value is 46.88%
  • yellow value is 0.00%
  • key color value is 74.90%
CMYK:
(94,47,0,75)
C94M47Y0K75 
(94%,47%,0%,75%)
(0.94/0.47/0.00/0.75)	

CMYK percentages

%93.75
%46.88
%0
%74.9

Codes

Color #042240 in popluar color models

042240
RGB43464
HSL210°88.24%13.33%
HSB/HSV210°93.75%25.10%
CMYK93.75%46.88%0.00%
74.90%

Color #042240 in popluar number systems.

HEX042240
Decimal43464
Binary1001000101000000
Octal442100

Shades and tints

Shades of #042240

#042240
(4,34,64)
#041F3B
(4,31,59)
#041C36
(4,28,54)
#041931
(4,25,49)
#04162C
(4,22,44)
#041327
(4,19,39)
#041022
(4,16,34)
#040D1D
(4,13,29)
#040A18
(4,10,24)
#040713
(4,7,19)
#04040E
(4,4,14)
#000000
(0,0,0)

Tints of #042240

#042240
(4,34,64)
#1A3651
(26,54,81)
#304A62
(48,74,98)
#465E73
(70,94,115)
#5C7284
(92,114,132)
#728695
(114,134,149)
#889AA6
(136,154,166)
#9EAEB7
(158,174,183)
#B4C2C8
(180,194,200)
#CAD6D9
(202,214,217)
#E0EAEA
(224,234,234)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #042240; }

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

This text font color is #042240.


Background Color

.myBgColor { background-color: #042240; }

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

This div background color is #042240.


Border color

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

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

This div border color is #042240.


Opacity

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

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

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

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

This text has shadow with #042240 color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #042240 on black background.


Color preview on white background

This text has color #042240 on white background.



Black color preview on #042240 background

This text has black color on #042240 background.


White color preview on #042240 background

This text has white color on #042240 background.