⤺ color picker

#400f7e Color Hex

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.

Color information

  • #400f7e is a shade of blue-magenta.
  • Blue is dominant among the three primary colors (RGB).
  • CMYK color proportions:
    • Cyan: 49.21%
    • Magenta: 88.10%
    • Yellow: 0%
    • Key color - black: 50.59%
  • In the HSL model coordinates are:
    • Hue: 266.5° degrees
    • Saturation: 78.7%
    • Lightness: 27.6%
  • The values in the RGB color space are:
    • Red: 64 (25.1%)
    • Green: 15 (5.88%)
    • Blue: 126 (49.41%)


C: 49.21%, M: 88.10%, Y: 0%, K: 50.59%
R: 64, G: 15, B: 126
H: 266.5°, S: 78.7%, L: 27.6%

Color harmonies

#400f7e color HTML and CSS codes

Example CSS code:

.setFontColor { color: #400f7e; }
.setBackgroundColor { background-color: #400f7e; }

#400f7e text/font color

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

#400f7e background color

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