Hex color #2f047d, RGB(47, 4, 125) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #2f047d is a shade of blue-magenta. In a RGB color space it is composed of 18.43% red, 1.57% green and 49.02% blue. In HSL notation it has 261.3° hue, 93.8% saturation and 25.3% lightness. The process color (CMYK) is combination of 62.4% cyan, 96.8% magenta, 0% yellow and 50.98% key (black). The closest short hexadecimal code of #2f047d is #207.
Example CSS code:
.setFontColor { color: #2f047d; }
.setBackgroundColor { background-color: #2f047d; }
How to set font color?
<p style="color:#2f047d">Font color is #2f047d.</p>
Font color is #2f047d.
Every person has their own colour.
- Haruki Murakami, Colorless Tsukuru Tazaki and His Years of Pilgrimage
How to set background color?
<div style="background-color:#2f047d">Background color is #2f047d.</div>
Background color is #2f047d.
Compromise in colors is grey.
- Edi Rama