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