Hex color #400f7e, RGB(64, 15, 126) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.
The hex color code #400f7e is a shade of blue-magenta. In a RGB color space it is composed of 25.1% red, 5.88% green and 49.41% blue. In HSL notation it has 266.5° hue, 78.7% saturation and 27.6% lightness. The process color (CMYK) is combination of 49.21% cyan, 88.10% magenta, 0% yellow and 50.59% key (black). The closest short hexadecimal code of #400f7e is #407.
Example CSS code:
.setFontColor { color: #400f7e; }
.setBackgroundColor { background-color: #400f7e; }
How to set font color?
<p style="color:#400f7e">Font color is #400f7e.</p>
Font color is #400f7e.
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:#400f7e">Background color is #400f7e.</div>
Background color is #400f7e.
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