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