COLOR #040F2E

HEX: #040F2E RGB: (4,15,46)

Color info

#040F2E contains red, green and blue colors in about the same proportion. Web safe color of #040F2E is #000033 (or #003).

RGB color model

#040F2E color RGB value is (4,15,46).

RGB: (4,15,46) (2%, 6%, 18%)

RGB channels and saturation

R 4 of 255 = 2%
G 15 of 255 = 6%
B 46 of 255 = 18%

4
15
46

R + G + B ~ 9%. #040F2E is dark color.

Portions of RGB colors in percentages

R + G + B = 4 + 15 + 46 = 65 (100%)
R 4 of 65 ~ 6.15%
G 15 of 65 ~ 23.08%
B 46 of 65 ~ 70.77'%

%23.08
%70.77

CMYK color model

#040F2E color CMYK value is (91,67,0,82).

  • cyan value is 91.30%
  • magenta value is 67.39%
  • yellow value is 0.00%
  • key color value is 81.96%
CMYK: (91,67,0,82) C91M67Y0K82 (91%,67%,0%,82%) (0.91/0.67/0.00/0.82) 

CMYK percentages

%91.3
%67.39
%0
%81.96

Codes

Color #040F2E in popluar color models

04 0F 2E
RGB 4 15 46
HSL 224° 84.00% 9.80%
HSB/HSV 224° 91.30% 18.04%
CMYK 91.30% 67.39% 0.00%
81.96%

Color #040F2E in popluar number systems.

HEX 04 0F 2E
Decimal 4 15 46
Binary 100 1111 101110
Octal 4 17 56

Shades and tints

Shades of #040F2E

#040F2E
(4,15,46)
#040E2A
(4,14,42)
#040D26
(4,13,38)
#040C22
(4,12,34)
#040B1E
(4,11,30)
#040A1A
(4,10,26)
#040916
(4,9,22)
#040812
(4,8,18)
#04070E
(4,7,14)
#04060A
(4,6,10)
#040506
(4,5,6)
#000000
(0,0,0)

Tints of #040F2E

#040F2E
(4,15,46)
#1A2441
(26,36,65)
#303954
(48,57,84)
#464E67
(70,78,103)
#5C637A
(92,99,122)
#72788D
(114,120,141)
#888DA0
(136,141,160)
#9EA2B3
(158,162,179)
#B4B7C6
(180,183,198)
#CACCD9
(202,204,217)
#E0E1EC
(224,225,236)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #040F2E color. Also use rgb(4,15,46) instead hex code.

Text Font Color

.myTextColor { color: #040F2E; }

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

This text font color is #040F2E.

Background Color

.myBgColor { background-color: #040F2E; }

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

This div background color is #040F2E.

Border color

.myBorderColor { border: 1px solid #040F2E; }

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

This div border color is #040F2E.

Opacity

.myOpacity80 { color: #040F2E; opacity: 0.8; }

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

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

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

This text has shadow with #040F2E color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #040F2E.

Preview

Color preview on black background

This text has color #040F2E on black background.


Color preview on white background

This text has color #040F2E on white background.


Black color preview on #040F2E background

This text has black color on #040F2E background.


White color preview on #040F2E background

This text has white color on #040F2E background.


Related colors

Complementary color

Complementary color for #hex is #FBF0D1.


I love getcolorcode.com

Triadic colors

1 #2E040F and #0F2E04 with #040F2E are triadic colors.

2 #2E0F04 and #0F042E with #040F2E are triadic colors.