Hex color #40457c, RGB(64, 69, 124) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #40457c is a shade of blue. In a RGB color space it is composed of 25.1% red, 27.06% green and 48.63% blue. In HSL notation it has 235° hue, 31.9% saturation and 36.9% lightness. The process color (CMYK) is combination of 48.39% cyan, 44.35% magenta, 0% yellow and 51.37% key (black). The closest short hexadecimal code of #40457c is #447.
Example CSS code:
.setFontColor { color: #40457c; }
.setBackgroundColor { background-color: #40457c; }
How to set font color?
<p style="color:#40457c">Font color is #40457c.</p>
Font color is #40457c.
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:#40457c">Background color is #40457c.</div>
Background color is #40457c.
Compromise in colors is grey.
- Edi Rama