COLOR #040002

HEX: #040002
RGB: (4,0,2)

Color info

#040002 contains only red and blue colors. Web safe color of #040002 is #000000 (or #000).

RGB color model

#040002 color RGB value is (4,0,2).

  • red value is 4;
  • green value is 0;
  • blue value is 2.
RGB: (4,0,2) (2%,0%,1%)

RGB channels and saturation

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

4
0
2

R + G + B ~ 1%. #040002 is dark color.

Portions of RGB colors in percentages

R + G + B =
4 + 0 + 2 = 6 (100%)
R 4 of 6 ~ 66.67%
G 0 of 6 ~ 0%
B 2 of 6 ~ 33.33%

%66.67
%33.33

CMYK color model

#040002 color CMYK value is (0,100,50,98).

  • cyan value is 0.00%
  • magenta value is 100.00%
  • yellow value is 50.00%
  • key color value is 98.43%
CMYK: (0,100,50,98) C0M100Y50K98 (0%,100%,50%,98%) (0.00/1.00/0.50/0.98)

CMYK percentages

%0
%100
%50
%98.43

Codes

Color #040002 in popluar color models

040002
RGB402
HSL330°100.00%0.78%
HSB/HSV330°100.00%1.57%
CMYK0.00%100.00%50.00%
98.43%

Color #040002 in popluar number systems.

HEX040002
Decimal402
Binary100010
Octal402

Shades and tints

Tints of #040002

#040002
(4,0,2)
#1A1719
(26,23,25)
#302E30
(48,46,48)
#464547
(70,69,71)
#5C5C5E
(92,92,94)
#727375
(114,115,117)
#888A8C
(136,138,140)
#9EA1A3
(158,161,163)
#B4B8BA
(180,184,186)
#CACFD1
(202,207,209)
#E0E6E8
(224,230,232)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #040002 color. Also use rgb(4,0,2) instead hex code.

Text Font Color

.myTextColor { color: #040002; }

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

This text font color is #040002.


Background Color

.myBgColor { background-color: #040002; }

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

This div background color is #040002.


Border color

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

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

This div border color is #040002.


Opacity

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

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

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

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

This text has shadow with #040002 color.

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

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

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


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

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

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


Div box shadow color

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

Preview

Color preview on black background

This text has color #040002 on black background.


Color preview on white background

This text has color #040002 on white background.



Black color preview on #040002 background

This text has black color on #040002 background.


White color preview on #040002 background

This text has white color on #040002 background.