Hex color #2a1a2a, RGB(42, 26, 42) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #2a1a2a is a shade of magenta. In a RGB color space it is composed of 16.47% red, 10.2% green and 16.47% blue. In HSL notation it has 300° hue, 23.5% saturation and 13.3% lightness. The process color (CMYK) is combination of 0% cyan, 38.10% magenta, 0% yellow and 83.53% key (black). The closest short hexadecimal code of #2a1a2a is #212.
Example CSS code:
.setFontColor { color: #2a1a2a; }
.setBackgroundColor { background-color: #2a1a2a; }
How to set font color?
<p style="color:#2a1a2a">Font color is #2a1a2a.</p>
Font color is #2a1a2a.
When you photograph people in color, you photograph their clothes. But when you photograph people in Black and white, you photograph their souls!
- Ted Grant
How to set background color?
<div style="background-color:#2a1a2a">Background color is #2a1a2a.</div>
Background color is #2a1a2a.
Every person has their own colour.
- Haruki Murakami, Colorless Tsukuru Tazaki and His Years of Pilgrimage