COLOR #040108

HEX: #040108 RGB: (4,1,8)

Color info

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

RGB color model

#040108 color RGB value is (4,1,8).

RGB: (4,1,8) (2%, 0%, 3%)

RGB channels and saturation

R 4 of 255 = 2%
G 1 of 255 = 0%
B 8 of 255 = 3%

4
1
8

R + G + B ~ 2%. #040108 is dark color.

Portions of RGB colors in percentages

R + G + B = 4 + 1 + 8 = 13 (100%)
R 4 of 13 ~ 30.77%
G 1 of 13 ~ 7.69%
B 8 of 13 ~ 61.54'%

%30.77
%61.54

CMYK color model

#040108 color CMYK value is (50,88,0,97).

  • cyan value is 50.00%
  • magenta value is 87.50%
  • yellow value is 0.00%
  • key color value is 96.86%

CMYK: (50,88,0,97)
C50M88Y0K97 (50%, 88%, 0%, 97%)
(0.50 / 0.88 / 0.00 / 0.97)

CMYK percentages

%50
%87.5
%0
%96.86

Codes

Color #040108 in popluar color models

04 01 08
RGB 4 1 8
HSL 266° 77.78% 1.76%
HSB/HSV 266° 87.50% 3.14%
CMYK 50.00% 87.50% 0.00%
96.86%

Color #040108 in popluar number systems.

HEX 04 01 08
Decimal 4 1 8
Binary 100 1 1000
Octal 4 1 10

Shades and tints

Tints of #040108

#040108
(4,1,8)
#1A181E
(26,24,30)
#302F34
(48,47,52)
#46464A
(70,70,74)
#5C5D60
(92,93,96)
#727476
(114,116,118)
#888B8C
(136,139,140)
#9EA2A2
(158,162,162)
#B4B9B8
(180,185,184)
#CAD0CE
(202,208,206)
#E0E7E4
(224,231,228)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #040108 color. Also use rgb(4,1,8) instead hex code.

Text Font Color

.myTextColor { color: #040108; }

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

This text font color is #040108.

Background Color

.myBgColor { background-color: #040108; }

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

This div background color is #040108.

Border color

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

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

This div border color is #040108.

Opacity

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

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

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

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

This text has shadow with #040108 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #040108.

Preview

Color preview on black background

This text has color #040108 on black background.


Color preview on white background

This text has color #040108 on white background.


Black color preview on #040108 background

This text has black color on #040108 background.


White color preview on #040108 background

This text has white color on #040108 background.


Related colors

Complementary color

Complementary color for #hex is #FBFEF7.


I love getcolorcode.com

Triadic colors

1 #080401 and #010804 with #040108 are triadic colors.

2 #080104 and #010408 with #040108 are triadic colors.