Hex color #0c002c, RGB(12, 0, 44) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #0c002c is a shade of blue-magenta. In a RGB color space it is composed of 4.71% red, 0% green and 17.25% blue. In HSL notation it has 256.4° hue, 100% saturation and 8.6% lightness. The process color (CMYK) is combination of 72.73% cyan, 100% magenta, 0% yellow and 82.75% key (black). The closest short hexadecimal code of #0c002c is #002.
Example CSS code:
.setFontColor { color: #0c002c; }
.setBackgroundColor { background-color: #0c002c; }
How to set font color?
<p style="color:#0c002c">Font color is #0c002c.</p>
Font color is #0c002c.
Red was ruby, green was fluorescent, yellow was simply incandescent. Color was life. Color was everything.
Color, you see, was the universal sign of magic.
- Tahereh Mafi, Furthermore
How to set background color?
<div style="background-color:#0c002c">Background color is #0c002c.</div>
Background color is #0c002c.
Every person has their own colour.
- Haruki Murakami, Colorless Tsukuru Tazaki and His Years of Pilgrimage