Hex color #2f0c1f, RGB(47, 12, 31) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #2f0c1f is a shade of red-magenta. In a RGB color space it is composed of 18.43% red, 4.71% green and 12.16% blue. In HSL notation it has 327.4° hue, 59.3% saturation and 11.6% lightness. The process color (CMYK) is combination of 0% cyan, 74.47% magenta, 34.04% yellow and 81.57% key (black). The closest short hexadecimal code of #2f0c1f is #201.
Example CSS code:
.setFontColor { color: #2f0c1f; }
.setBackgroundColor { background-color: #2f0c1f; }
How to set font color?
<p style="color:#2f0c1f">Font color is #2f0c1f.</p>
Font color is #2f0c1f.
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:#2f0c1f">Background color is #2f0c1f.</div>
Background color is #2f0c1f.
Compromise in colors is grey.
- Edi Rama