COLOR #040C28

HEX: #040C28 RGB: (4,12,40)

Color info

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

RGB color model

#040C28 color RGB value is (4,12,40).

RGB: (4,12,40) (2%, 5%, 16%)

RGB channels and saturation

R 4 of 255 = 2%
G 12 of 255 = 5%
B 40 of 255 = 16%

4
12
40

R + G + B ~ 8%. #040C28 is dark color.

Portions of RGB colors in percentages

R + G + B = 4 + 12 + 40 = 56 (100%)
R 4 of 56 ~ 7.14%
G 12 of 56 ~ 21.43%
B 40 of 56 ~ 71.43'%

%21.43
%71.43

CMYK color model

#040C28 color CMYK value is (90,70,0,84).

  • cyan value is 90.00%
  • magenta value is 70.00%
  • yellow value is 0.00%
  • key color value is 84.31%
CMYK: (90,70,0,84) C90M70Y0K84 (90%,70%,0%,84%) (0.90/0.70/0.00/0.84) 

CMYK percentages

%90
%70
%0
%84.31

Codes

Color #040C28 in popluar color models

04 0C 28
RGB 4 12 40
HSL 227° 81.82% 8.63%
HSB/HSV 227° 90.00% 15.69%
CMYK 90.00% 70.00% 0.00%
84.31%

Color #040C28 in popluar number systems.

HEX 04 0C 28
Decimal 4 12 40
Binary 100 1100 101000
Octal 4 14 50

Shades and tints

Shades of #040C28

#040C28
(4,12,40)
#040B25
(4,11,37)
#040A22
(4,10,34)
#04091F
(4,9,31)
#04081C
(4,8,28)
#040719
(4,7,25)
#040616
(4,6,22)
#040513
(4,5,19)
#040410
(4,4,16)
#04030D
(4,3,13)
#04020A
(4,2,10)
#000000
(0,0,0)

Tints of #040C28

#040C28
(4,12,40)
#1A223B
(26,34,59)
#30384E
(48,56,78)
#464E61
(70,78,97)
#5C6474
(92,100,116)
#727A87
(114,122,135)
#88909A
(136,144,154)
#9EA6AD
(158,166,173)
#B4BCC0
(180,188,192)
#CAD2D3
(202,210,211)
#E0E8E6
(224,232,230)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #040C28 color. Also use rgb(4,12,40) instead hex code.

Text Font Color

.myTextColor { color: #040C28; }

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

This text font color is #040C28.

Background Color

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

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

This div background color is #040C28.

Border color

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

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

This div border color is #040C28.

Opacity

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

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

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

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

This text has shadow with #040C28 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #040C28.

Preview

Color preview on black background

This text has color #040C28 on black background.


Color preview on white background

This text has color #040C28 on white background.


Black color preview on #040C28 background

This text has black color on #040C28 background.


White color preview on #040C28 background

This text has white color on #040C28 background.


Related colors

Complementary color

Complementary color for #hex is #FBF3D7.


I love getcolorcode.com

Triadic colors

1 #28040C and #0C2804 with #040C28 are triadic colors.

2 #280C04 and #0C0428 with #040C28 are triadic colors.