#2A0A31#2A0A31

#2A0A31 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 22.1% C 0.080 H 319.9°. Best body text is #FFFFFF at 17.70:1 contrast (WCAG AA passes).

Color values

HEX#2A0A31
RGBrgb(42, 10, 49)
HSLhsl(289, 66%, 12%)
HSVhsv(289, 80%, 19%)
CMYKcmyk(14.3%, 79.6%, 0%, 80.8%)
CIE-LABlab(8.40, 23.42, -18.33)
CIE-LCHlch(8.40, 29.74, 321.96°)
OKLaboklab(22.05% 0.061 -0.0512)
OKLCHoklch(22.05% 0.08 319.9)
XYZxyz(1.6177, 0.9312, 2.9997)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0A31 #11310A
analogous
#170A31 #2A0A31 #310A25
triadic
#2A0A31 #312A0A #0A312A
tetradic
#2A0A31 #31170A #11310A #0A2531
square
#2A0A31 #31170A #11310A #0A2531
split-complementary
#2A0A31 #25310A #0A3117
monochromatic
#160519 #160519 #2A0A31 #561464 #811F97

Accessibility & contrast

On white

17.70
#2A0A31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#2A0A31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0A31
17.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0A31#FFFFFF#000000##FFFFFF
##2A0A311.0017.701.1917.70
#FFFFFF17.701.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011632
Deuteranopia (green-blind)
#0D1930
Tritanopia (blue-blind)
#2A111C
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2a0a31;
/* rgb */ color: rgb(42, 10, 49);
/* oklch */ color: oklch(22.1% 0.080 319.9);
Tailwind
colors: {
  custom: {
    50: '#654c69',
    500: '#2a0a31',
    950: '#000000',
  },
}
SCSS
$custom: #2a0a31;
$custom-light: #654c69;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0a31",
  "rgb": {
    "r": 42,
    "g": 10,
    "b": 49
  },
  "hsl": {
    "h": 289.231,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.22053,
    "c": 0.07963,
    "h": 319.9
  },
  "luminance": 0.00931
}

Semantic roles & 50–950 ramp

primary
#2A0A31
secondary
#356E29
accent
#E93F5D
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2A0A31

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

Preview Lab → · Contrast checker → · Palette generator →

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