#2A1232#2A1232

#2A1232 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.4% C 0.066 H 317.1°. Best body text is #FFFFFF at 17.06:1 contrast (WCAG AA passes).

Color values

HEX#2A1232
RGBrgb(42, 18, 50)
HSLhsl(285, 47%, 13%)
HSVhsv(285, 64%, 20%)
CMYKcmyk(16%, 64%, 0%, 80.4%)
CIE-LABlab(10.22, 18.92, -16.17)
CIE-LCHlch(10.22, 24.89, 319.48°)
OKLaboklab(23.4% 0.0484 -0.045)
OKLCHoklch(23.4% 0.066 317.1)
XYZxyz(1.7468, 1.1552, 3.1480)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1232 #1A3212
analogous
#1A1232 #2A1232 #32122A
triadic
#2A1232 #322A12 #12322A
tetradic
#2A1232 #321A12 #1A3212 #122A32
square
#2A1232 #321A12 #1A3212 #122A32
split-complementary
#2A1232 #2A3212 #12321A
monochromatic
#130817 #130817 #2A1232 #50225F #76328C

Accessibility & contrast

On white

17.06
#2A1232 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2A1232 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1232
17.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1232#FFFFFF#000000##FFFFFF
##2A12321.0017.061.2317.06
#FFFFFF17.061.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1A33
Deuteranopia (green-blind)
#131D31
Tritanopia (blue-blind)
#2A171F
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2a1232;
/* rgb */ color: rgb(42, 18, 50);
/* oklch */ color: oklch(23.4% 0.066 317.1);
Tailwind
colors: {
  custom: {
    50: '#65516a',
    500: '#2a1232',
    950: '#000000',
  },
}
SCSS
$custom: #2a1232;
$custom-light: #65516a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1232",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 50
  },
  "hsl": {
    "h": 285,
    "s": 47.059,
    "l": 13.333
  },
  "oklch": {
    "l": 0.234,
    "c": 0.06609,
    "h": 317.1
  },
  "luminance": 0.01155
}

Semantic roles & 50–950 ramp

primary
#2A1232
secondary
#436A36
accent
#D75173
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050206
muted
#7A787A

Preview Lab

Preview with #2A1232

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

Preview Lab → · Contrast checker → · Palette generator →

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