Hex color #2f51dc, RGB(47, 81, 220) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #2f51dc is a shade of blue. In a RGB color space it is composed of 18.43% red, 31.76% green and 86.27% blue. In HSL notation it has 228.2° hue, 71.2% saturation and 52.4% lightness. The process color (CMYK) is combination of 78.64% cyan, 63.18% magenta, 0% yellow and 13.73% key (black). The closest short hexadecimal code of #2f51dc is #25d.
Example CSS code:
.setFontColor { color: #2f51dc; }
.setBackgroundColor { background-color: #2f51dc; }
How to set font color?
<p style="color:#2f51dc">Font color is #2f51dc.</p>
Font color is #2f51dc.
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:#2f51dc">Background color is #2f51dc.</div>
Background color is #2f51dc.
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