⤺ color picker
0
Reddit

#2a1a2a Color Hex

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


The hex color code #2a1a2a is a shade of magenta. In a RGB color space it is composed of 16.47% red, 10.2% green and 16.47% blue. In HSL notation it has 300° hue, 23.5% saturation and 13.3% lightness. The process color (CMYK) is combination of 0% cyan, 38.10% magenta, 0% yellow and 83.53% key (black). The closest short hexadecimal code of #2a1a2a is #212.

Color information

  • #2a1a2a is a shade of magenta.
  • CMYK color proportions:
    • Cyan: 0%
    • Magenta: 38.10%
    • Yellow: 0%
    • Key color - black: 83.53%
  • In the HSL model coordinates are:
    • Hue: 300° degrees
    • Saturation: 23.5%
    • Lightness: 13.3%
  • The values in the RGB color space are:
    • Red: 42 (16.47%)
    • Green: 26 (10.2%)
    • Blue: 42 (16.47%)

Conversions

Hex:
#2a1a2a
CMYK:
C: 0%, M: 38.10%, Y: 0%, K: 83.53%
RGB:
R: 42, G: 26, B: 42
HSL:
H: 300°, S: 23.5%, L: 13.3%

Color harmonies

#2a1a2a color HTML and CSS codes

Example CSS code:

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

#2a1a2a text/font color

How to set font color?

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

Font color is #2a1a2a.

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

#2a1a2a background color

How to set background color?

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

Background color is #2a1a2a.

Every person has their own colour.
- Haruki Murakami, Colorless Tsukuru Tazaki and His Years of Pilgrimage