COLOR #041840

HEX: #041840 RGB: (4,24,64)

Color info

#041840 contains mainly green and blue colors. Web safe color of #041840 is #000033 (or #003).

RGB color model

#041840 color RGB value is (4,24,64).

RGB: (4,24,64) (2%, 9%, 25%)

RGB channels and saturation

R 4 of 255 = 2%
G 24 of 255 = 9%
B 64 of 255 = 25%

4
24
64

R + G + B ~ 12%. #041840 is dark color.

Portions of RGB colors in percentages

R + G + B = 4 + 24 + 64 = 92 (100%)
R 4 of 92 ~ 4.35%
G 24 of 92 ~ 26.09%
B 64 of 92 ~ 69.57'%

%26.09
%69.57

CMYK color model

#041840 color CMYK value is (94,63,0,75).

  • cyan value is 93.75%
  • magenta value is 62.50%
  • yellow value is 0.00%
  • key color value is 74.90%
CMYK: (94,63,0,75) C94M63Y0K75 (94%,63%,0%,75%) (0.94/0.63/0.00/0.75) 

CMYK percentages

%93.75
%62.5
%0
%74.9

Codes

Color #041840 in popluar color models

04 18 40
RGB 4 24 64
HSL 220° 88.24% 13.33%
HSB/HSV 220° 93.75% 25.10%
CMYK 93.75% 62.50% 0.00%
74.90%

Color #041840 in popluar number systems.

HEX 04 18 40
Decimal 4 24 64
Binary 100 11000 1000000
Octal 4 30 100

Shades and tints

Shades of #041840

#041840
(4,24,64)
#04163B
(4,22,59)
#041436
(4,20,54)
#041231
(4,18,49)
#04102C
(4,16,44)
#040E27
(4,14,39)
#040C22
(4,12,34)
#040A1D
(4,10,29)
#040818
(4,8,24)
#040613
(4,6,19)
#04040E
(4,4,14)
#000000
(0,0,0)

Tints of #041840

#041840
(4,24,64)
#1A2D51
(26,45,81)
#304262
(48,66,98)
#465773
(70,87,115)
#5C6C84
(92,108,132)
#728195
(114,129,149)
#8896A6
(136,150,166)
#9EABB7
(158,171,183)
#B4C0C8
(180,192,200)
#CAD5D9
(202,213,217)
#E0EAEA
(224,234,234)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #041840; }

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

This text font color is #041840.

Background Color

.myBgColor { background-color: #041840; }

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

This div background color is #041840.

Border color

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

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

This div border color is #041840.

Opacity

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

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

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

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

This text has shadow with #041840 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #041840.

Preview

Color preview on black background

This text has color #041840 on black background.


Color preview on white background

This text has color #041840 on white background.


Black color preview on #041840 background

This text has black color on #041840 background.


White color preview on #041840 background

This text has white color on #041840 background.


Related colors

Complementary color

Complementary color for #hex is #FBE7BF.


I love getcolorcode.com

Triadic colors

1 #400418 and #184004 with #041840 are triadic colors.

2 #401804 and #180440 with #041840 are triadic colors.