COLOR #040518

HEX: #040518
RGB: (4,5,24)

Color info

#040518 contains red, green and blue colors in about the same proportion. Web safe color of #040518 is #000000 (or #000).

RGB color model

#040518 color RGB value is (4,5,24).

  • red value is 4;
  • green value is 5;
  • blue value is 24.
RGB:
(4,5,24)
(2%,2%,9%)

RGB channels and saturation

R 4 of 255 = 2%
G 5 of 255 = 2%
B 24 of 255 = 9%

4
5
24

R + G + B ~ 4%. #040518 is dark color.

Portions of RGB colors in percentages

R + G + B =
4 + 5 + 24 = 33 (100%)
R 4 of 33 ~ 12.12%
G 5 of 33 ~ 15.15%
B 24 of 33 ~ 72.73%

%12.12
%15.15
%72.73

CMYK color model

#040518 color CMYK value is (83,79,0,91).

  • cyan value is 83.33%
  • magenta value is 79.17%
  • yellow value is 0.00%
  • key color value is 90.59%
CMYK:
(83,79,0,91)
C83M79Y0K91 
(83%,79%,0%,91%)
(0.83/0.79/0.00/0.91)	

CMYK percentages

%83.33
%79.17
%0
%90.59

Codes

Color #040518 in popluar color models

040518
RGB4524
HSL237°71.43%5.49%
HSB/HSV237°83.33%9.41%
CMYK83.33%79.17%0.00%
90.59%

Color #040518 in popluar number systems.

HEX040518
Decimal4524
Binary10010111000
Octal4530

Shades and tints

Shades of #040518

#040518
(4,5,24)
#040516
(4,5,22)
#040514
(4,5,20)
#040512
(4,5,18)
#040510
(4,5,16)
#04050E
(4,5,14)
#04050C
(4,5,12)
#04050A
(4,5,10)
#040508
(4,5,8)
#040506
(4,5,6)
#040504
(4,5,4)
#000000
(0,0,0)

Tints of #040518

#040518
(4,5,24)
#1A1B2D
(26,27,45)
#303142
(48,49,66)
#464757
(70,71,87)
#5C5D6C
(92,93,108)
#727381
(114,115,129)
#888996
(136,137,150)
#9E9FAB
(158,159,171)
#B4B5C0
(180,181,192)
#CACBD5
(202,203,213)
#E0E1EA
(224,225,234)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #040518; }

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

This text font color is #040518.


Background Color

.myBgColor { background-color: #040518; }

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

This div background color is #040518.


Border color

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

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

This div border color is #040518.


Opacity

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

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

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

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

This text has shadow with #040518 color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #040518 on black background.


Color preview on white background

This text has color #040518 on white background.



Black color preview on #040518 background

This text has black color on #040518 background.


White color preview on #040518 background

This text has white color on #040518 background.