Hex color #2a52e1, RGB(42, 82, 225) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #2a52e1 is a shade of blue. In a RGB color space it is composed of 16.47% red, 32.16% green and 88.24% blue. In HSL notation it has 226.9° hue, 75.3% saturation and 52.4% lightness. The process color (CMYK) is combination of 81.33% cyan, 63.56% magenta, 0% yellow and 11.76% key (black). The closest short hexadecimal code of #2a52e1 is #25e.
Example CSS code:
.setFontColor { color: #2a52e1; }
.setBackgroundColor { background-color: #2a52e1; }
How to set font color?
<p style="color:#2a52e1">Font color is #2a52e1.</p>
Font color is #2a52e1.
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:#2a52e1">Background color is #2a52e1.</div>
Background color is #2a52e1.
Compromise in colors is grey.
- Edi Rama