#2A122D#2A122D

#2A122D is a very dark, muted purple. Relative luminance 0.011; OKLCH L 23.1% C 0.060 H 323.0°. Best body text is #FFFFFF at 17.17:1 contrast (WCAG AA passes).

Color values

HEX#2A122D
RGBrgb(42, 18, 45)
HSLhsl(293, 43%, 12%)
HSVhsv(293, 60%, 18%)
CMYKcmyk(6.7%, 60%, 0%, 82.4%)
CIE-LABlab(9.91, 17.65, -13.00)
CIE-LCHlch(9.91, 21.92, 323.63°)
OKLaboklab(23.07% 0.0476 -0.0358)
OKLCHoklch(23.07% 0.06 323)
XYZxyz(1.6448, 1.1144, 2.6106)
Luminance0.0111 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A122D #152D12
analogous
#1C122D #2A122D #2D1223
triadic
#2A122D #2D2A12 #122D2A
tetradic
#2A122D #2D1C12 #152D12 #12232D
square
#2A122D #2D1C12 #152D12 #12232D
split-complementary
#2A122D #232D12 #122D1C
monochromatic
#140916 #140916 #2A122D #532359 #7C3584

Accessibility & contrast

On white

17.17
#2A122D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A122D
17.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A122D#FFFFFF#000000##FFFFFF
##2A122D1.0017.171.2217.17
#FFFFFF17.171.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E192E
Deuteranopia (green-blind)
#151C2C
Tritanopia (blue-blind)
#2B151D
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2a122d;
/* rgb */ color: rgb(42, 18, 45);
/* oklch */ color: oklch(23.1% 0.060 323.0);
Tailwind
colors: {
  custom: {
    50: '#645166',
    500: '#2a122d',
    950: '#000000',
  },
}
SCSS
$custom: #2a122d;
$custom-light: #645166;
$custom-dark: #000000;
JSON
{
  "hex": "#2a122d",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 45
  },
  "hsl": {
    "h": 293.333,
    "s": 42.857,
    "l": 12.353
  },
  "oklch": {
    "l": 0.23067,
    "c": 0.05959,
    "h": 323
  },
  "luminance": 0.01114
}

Semantic roles & 50–950 ramp

primary
#2A122D
secondary
#3B6536
accent
#D35563
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050205
muted
#7A787A

Preview Lab

Preview with #2A122D

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

Preview Lab → · Contrast checker → · Palette generator →

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