#2A1234#2A1234

#2A1234 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.5% C 0.069 H 315.0°. Best body text is #FFFFFF at 17.01:1 contrast (WCAG AA passes).

Color values

HEX#2A1234
RGBrgb(42, 18, 52)
HSLhsl(282, 49%, 14%)
HSVhsv(282, 65%, 20%)
CMYKcmyk(19.2%, 65.4%, 0%, 79.6%)
CIE-LABlab(10.36, 19.45, -17.42)
CIE-LCHlch(10.36, 26.11, 318.16°)
OKLaboklab(23.54% 0.0486 -0.0486)
OKLCHoklch(23.54% 0.069 315)
XYZxyz(1.7909, 1.1728, 3.3802)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1234 #1C3412
analogous
#191234 #2A1234 #34122D
triadic
#2A1234 #342A12 #12342A
tetradic
#2A1234 #341912 #1C3412 #122D34
square
#2A1234 #341912 #1C3412 #122D34
split-complementary
#2A1234 #2D3412 #123419
monochromatic
#120817 #120817 #2A1234 #4F2261 #73318F

Accessibility & contrast

On white

17.01
#2A1234 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1234
17.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1234#FFFFFF#000000##FFFFFF
##2A12341.0017.011.2317.01
#FFFFFF17.011.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091B35
Deuteranopia (green-blind)
#121D33
Tritanopia (blue-blind)
#291820
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2a1234;
/* rgb */ color: rgb(42, 18, 52);
/* oklch */ color: oklch(23.5% 0.069 315.0);
Tailwind
colors: {
  custom: {
    50: '#65516b',
    500: '#2a1234',
    950: '#000000',
  },
}
SCSS
$custom: #2a1234;
$custom-light: #65516b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1234",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 52
  },
  "hsl": {
    "h": 282.353,
    "s": 48.571,
    "l": 13.725
  },
  "oklch": {
    "l": 0.2354,
    "c": 0.06875,
    "h": 315
  },
  "luminance": 0.01173
}

Semantic roles & 50–950 ramp

primary
#2A1234
secondary
#466C35
accent
#D85078
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050206
muted
#7A787A

Preview Lab

Preview with #2A1234

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

Preview Lab → · Contrast checker → · Palette generator →

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