Hex color #2f3fab, RGB(47, 63, 171) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #2f3fab is a shade of blue. In a RGB color space it is composed of 18.43% red, 24.71% green and 67.06% blue. In HSL notation it has 232.3° hue, 56.9% saturation and 42.7% lightness. The process color (CMYK) is combination of 72.51% cyan, 63.16% magenta, 0% yellow and 32.94% key (black). The closest short hexadecimal code of #2f3fab is #23a.
Example CSS code:
.setFontColor { color: #2f3fab; }
.setBackgroundColor { background-color: #2f3fab; }
How to set font color?
<p style="color:#2f3fab">Font color is #2f3fab.</p>
Font color is #2f3fab.
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:#2f3fab">Background color is #2f3fab.</div>
Background color is #2f3fab.
Compromise in colors is grey.
- Edi Rama