#2A0232#2A0232

#2A0232 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.0% C 0.095 H 320.4°. Best body text is #FFFFFF at 18.21:1 contrast (WCAG AA passes).

Color values

HEX#2A0232
RGBrgb(42, 2, 50)
HSLhsl(290, 92%, 10%)
HSVhsv(290, 96%, 20%)
CMYKcmyk(16%, 96%, 0%, 80.4%)
CIE-LABlab(6.92, 28.06, -21.44)
CIE-LCHlch(6.92, 35.32, 322.62°)
OKLaboklab(20.99% 0.0731 -0.0605)
OKLCHoklch(20.99% 0.095 320.4)
XYZxyz(1.5522, 0.7660, 3.0831)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0232 #0A3202
analogous
#120232 #2A0232 #320222
triadic
#2A0232 #322A02 #02322A
tetradic
#2A0232 #321202 #0A3202 #022232
square
#2A0232 #321202 #0A3202 #022232
split-complementary
#2A0232 #223202 #023212
monochromatic
#19011D #19011D #2A0232 #5B046D #8D07A8

Accessibility & contrast

On white

18.21
#2A0232 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#2A0232 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0232
18.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0232#FFFFFF#000000##FFFFFF
##2A02321.0018.211.1518.21
#FFFFFF18.211.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001333
Deuteranopia (green-blind)
#061731
Tritanopia (blue-blind)
#2A0B1A
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2a0232;
/* rgb */ color: rgb(42, 2, 50);
/* oklch */ color: oklch(21.0% 0.095 320.4);
Tailwind
colors: {
  custom: {
    50: '#66476a',
    500: '#2a0232',
    950: '#000000',
  },
}
SCSS
$custom: #2a0232;
$custom-light: #66476a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0232",
  "rgb": {
    "r": 42,
    "g": 2,
    "b": 50
  },
  "hsl": {
    "h": 290,
    "s": 92.308,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20988,
    "c": 0.09492,
    "h": 320.4
  },
  "luminance": 0.00766
}

Semantic roles & 50–950 ramp

primary
#2A0232
secondary
#297619
accent
#FF294D
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060006
muted
#7A777A

Preview Lab

Preview with #2A0232

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

Preview Lab → · Contrast checker → · Palette generator →

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