⤺ color picker

#2a064e Color Hex

Hex color #2a064e, RGB(42, 6, 78) - code, conversions, schemes and color harmonies, as well as examples of use in HTML and CSS.

The hex color code #2a064e is a shade of blue-magenta. In a RGB color space it is composed of 16.47% red, 2.35% green and 30.59% blue. In HSL notation it has 270° hue, 85.7% saturation and 16.5% lightness. The process color (CMYK) is combination of 46.15% cyan, 92.31% magenta, 0% yellow and 69.41% key (black). The closest short hexadecimal code of #2a064e is #204.

Color information

  • #2a064e is a shade of blue-magenta.
  • Blue is dominant among the three primary colors (RGB).
  • CMYK color proportions:
    • Cyan: 46.15%
    • Magenta: 92.31%
    • Yellow: 0%
    • Key color - black: 69.41%
  • In the HSL model coordinates are:
    • Hue: 270° degrees
    • Saturation: 85.7%
    • Lightness: 16.5%
  • The values in the RGB color space are:
    • Red: 42 (16.47%)
    • Green: 6 (2.35%)
    • Blue: 78 (30.59%)


C: 46.15%, M: 92.31%, Y: 0%, K: 69.41%
R: 42, G: 6, B: 78
H: 270°, S: 85.7%, L: 16.5%

Color harmonies

#2a064e color HTML and CSS codes

Example CSS code:

.setFontColor { color: #2a064e; }
.setBackgroundColor { background-color: #2a064e; }

#2a064e text/font color

How to set font color?

<p style="color:#2a064e">Font color is #2a064e.</p>

Font color is #2a064e.

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

#2a064e background color

How to set background color?

<div style="background-color:#2a064e">Background color is #2a064e.</div>

Background color is #2a064e.

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