#2A0233#2A0233

#2A0233 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.1% C 0.096 H 319.5°. Best body text is #FFFFFF at 18.18:1 contrast (WCAG AA passes).

Color values

HEX#2A0233
RGBrgb(42, 2, 51)
HSLhsl(289, 92%, 10%)
HSVhsv(289, 96%, 20%)
CMYKcmyk(17.6%, 96.1%, 0%, 80%)
CIE-LABlab(7.00, 28.31, -22.05)
CIE-LCHlch(7.00, 35.89, 322.08°)
OKLaboklab(21.08% 0.0729 -0.0623)
OKLCHoklch(21.08% 0.096 319.5)
XYZxyz(1.5740, 0.7748, 3.1980)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0233 #0B3302
analogous
#120233 #2A0233 #330223
triadic
#2A0233 #332A02 #02332A
tetradic
#2A0233 #331202 #0B3302 #022333
square
#2A0233 #331202 #0B3302 #022333
split-complementary
#2A0233 #233302 #023312
monochromatic
#18011D #18011D #2A0233 #5A046E #8B07A9

Accessibility & contrast

On white

18.18
#2A0233 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#2A0233 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0233
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0233#FFFFFF#000000##FFFFFF
##2A02331.0018.181.1618.18
#FFFFFF18.181.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001334
Deuteranopia (green-blind)
#051732
Tritanopia (blue-blind)
#2A0C1A
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2a0233;
/* rgb */ color: rgb(42, 2, 51);
/* oklch */ color: oklch(21.1% 0.096 319.5);
Tailwind
colors: {
  custom: {
    50: '#66476b',
    500: '#2a0233',
    950: '#000000',
  },
}
SCSS
$custom: #2a0233;
$custom-light: #66476b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0233",
  "rgb": {
    "r": 42,
    "g": 2,
    "b": 51
  },
  "hsl": {
    "h": 288.98,
    "s": 92.453,
    "l": 10.392
  },
  "oklch": {
    "l": 0.21075,
    "c": 0.09586,
    "h": 319.5
  },
  "luminance": 0.00775
}

Semantic roles & 50–950 ramp

primary
#2A0233
secondary
#2B771A
accent
#FF2950
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060006
muted
#7A777A

Preview Lab

Preview with #2A0233

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

Preview Lab → · Contrast checker → · Palette generator →

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