#2A122A#2A122A

#2A122A is a very dark, muted purple. Relative luminance 0.011; OKLCH L 22.9% C 0.056 H 327.2°. Best body text is #FFFFFF at 17.24:1 contrast (WCAG AA passes).

Color values

HEX#2A122A
RGBrgb(42, 18, 42)
HSLhsl(300, 40%, 12%)
HSVhsv(300, 57%, 16%)
CMYKcmyk(0%, 57.1%, 0%, 83.5%)
CIE-LABlab(9.74, 16.92, -11.05)
CIE-LCHlch(9.74, 20.21, 326.85°)
OKLaboklab(22.88% 0.047 -0.0303)
OKLCHoklch(22.88% 0.056 327.2)
XYZxyz(1.5890, 1.0921, 2.3171)
Luminance0.0109 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A122A #122A12
analogous
#1E122A #2A122A #2A121E
triadic
#2A122A #2A2A12 #122A2A
tetradic
#2A122A #2A1E12 #122A12 #121E2A
square
#2A122A #2A1E12 #122A12 #121E2A
split-complementary
#2A122A #1E2A12 #122A1E
monochromatic
#150915 #150915 #2A122A #552455 #803780

Accessibility & contrast

On white

17.24
#2A122A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2A122A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A122A
17.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A122A#FFFFFF#000000##FFFFFF
##2A122A1.0017.241.2217.24
#FFFFFF17.241.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10192B
Deuteranopia (green-blind)
#171C29
Tritanopia (blue-blind)
#2B141C
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2a122a;
/* rgb */ color: rgb(42, 18, 42);
/* oklch */ color: oklch(22.9% 0.056 327.2);
Tailwind
colors: {
  custom: {
    50: '#645163',
    500: '#2a122a',
    950: '#000000',
  },
}
SCSS
$custom: #2a122a;
$custom-light: #645163;
$custom-dark: #000000;
JSON
{
  "hex": "#2a122a",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 42
  },
  "hsl": {
    "h": 300,
    "s": 40,
    "l": 11.765
  },
  "oklch": {
    "l": 0.22881,
    "c": 0.05587,
    "h": 327.2
  },
  "luminance": 0.01092
}

Semantic roles & 50–950 ramp

primary
#2A122A
secondary
#376137
accent
#D05858
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#050205
muted
#7A7879

Preview Lab

Preview with #2A122A

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2A122A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva