HEX: #040002
RGB: (4,0,2)
#040002 contains only red and blue colors. Web safe color of #040002 is #000000 (or #000).
#040002 color RGB value is (4,0,2).
RGB: (4,0,2)
(2%, 0%, 1%)
R 4 of 255 = 2%
G 0 of 255 = 0%
B 2 of 255 = 1%
R + G + B ~ 1%. #040002 is dark color.
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'%
#040002 color CMYK value is (0,100,50,98).
CMYK: (0,100,50,98)
C0M100Y50K98 (0%, 100%, 50%, 98%)
(0.00 / 1.00 / 0.50 / 0.98)
Color #040002 in popluar color models
04 | 00 | 02 | |
---|---|---|---|
RGB | 4 | 0 | 2 |
HSL | 330° | 100.00% | 0.78% |
HSB/HSV | 330° | 100.00% | 1.57% |
CMYK | 0.00% | 100.00% | 50.00% |
98.43% |
Color #040002 in popluar number systems.
HEX | 04 | 00 | 02 |
Decimal | 4 | 0 | 2 |
Binary | 100 | 0 | 10 |
Octal | 4 | 0 | 2 |
Tints of #040002
Examples of css and html codes for elements with #040002 color. Also use rgb(4,0,2) instead hex code.
.myTextColor { color: #040002; }
<p style="color:#040002">This sample text font color is #040002.</p>
This text font color is #040002.
.myBgColor { background-color: #040002; }
<div style="background-color:#040002">Inner text</div>
This div background color is #040002.
.myBorderColor { border: 1px solid #040002; }
<div style="border:3px solid #040002">Div</div>
This div border color is #040002.
.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%.
.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.
/* 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 text has color #040002 on black background.
This text has color #040002 on white background.
This text has black color on #040002 background.
This text has white color on #040002 background.
Complementary color for #hex is #FBFFFD.