⤺ color picker
0
Reddit

#2a1f28 Color Hex

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


The hex color code #2a1f28 is a shade of magenta. In a RGB color space it is composed of 16.47% red, 12.16% green and 15.69% blue. In HSL notation it has 310.9° hue, 15.1% saturation and 14.3% lightness. The process color (CMYK) is combination of 0% cyan, 26.19% magenta, 4.76% yellow and 83.53% key (black). The closest short hexadecimal code of #2a1f28 is #212.

Color information

  • #2a1f28 is a shade of magenta.
  • Red is dominant among the three primary colors (RGB).
  • CMYK color proportions:
    • Cyan: 0%
    • Magenta: 26.19%
    • Yellow: 4.76%
    • Key color - black: 83.53%
  • In the HSL model coordinates are:
    • Hue: 310.9° degrees
    • Saturation: 15.1%
    • Lightness: 14.3%
  • The values in the RGB color space are:
    • Red: 42 (16.47%)
    • Green: 31 (12.16%)
    • Blue: 40 (15.69%)

Conversions

Hex:
#2a1f28
CMYK:
C: 0%, M: 26.19%, Y: 4.76%, K: 83.53%
RGB:
R: 42, G: 31, B: 40
HSL:
H: 310.9°, S: 15.1%, L: 14.3%

Color harmonies

#2a1f28 color HTML and CSS codes

Example CSS code:

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

#2a1f28 text/font color

How to set font color?

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

Font color is #2a1f28.

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

#2a1f28 background color

How to set background color?

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

Background color is #2a1f28.

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