#2A0229#2A0229

#2A0229 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.3% C 0.087 H 329.3°. Best body text is #FFFFFF at 18.43:1 contrast (WCAG AA passes).

Color values

HEX#2A0229
RGBrgb(42, 2, 41)
HSLhsl(302, 91%, 9%)
HSVhsv(302, 95%, 16%)
CMYKcmyk(0%, 95.2%, 2.4%, 83.5%)
CIE-LABlab(6.29, 25.82, -15.71)
CIE-LCHlch(6.29, 30.23, 328.69°)
OKLaboklab(20.25% 0.0744 -0.0442)
OKLCHoklch(20.25% 0.087 329.3)
XYZxyz(1.3768, 0.6959, 2.1592)
Luminance0.0070 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0229 #022A03
analogous
#17022A #2A0229 #2A0215
triadic
#2A0229 #292A02 #02292A
tetradic
#2A0229 #2A1702 #022A03 #02152A
square
#2A0229 #2A1702 #022A03 #02152A
split-complementary
#2A0229 #152A02 #022A17
monochromatic
#1D011D #1D011D #2A0229 #640562 #9F089B

Accessibility & contrast

On white

18.43
#2A0229 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#2A0229 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0229
18.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0229#FFFFFF#000000##FFFFFF
##2A02291.0018.431.1418.43
#FFFFFF18.431.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102A
Deuteranopia (green-blind)
#0D1628
Tritanopia (blue-blind)
#2C0715
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #2a0229;
/* rgb */ color: rgb(42, 2, 41);
/* oklch */ color: oklch(20.3% 0.087 329.3);
Tailwind
colors: {
  custom: {
    50: '#654763',
    500: '#2a0229',
    950: '#000000',
  },
}
SCSS
$custom: #2a0229;
$custom-light: #654763;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0229",
  "rgb": {
    "r": 42,
    "g": 2,
    "b": 41
  },
  "hsl": {
    "h": 301.5,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.20251,
    "c": 0.08657,
    "h": 329.3
  },
  "luminance": 0.00696
}

Semantic roles & 50–950 ramp

primary
#2A0229
secondary
#196F1B
accent
#FF2E29
background
#F6F4F5
surface
#EBE6EA
border
#C6C2C6
text
#060005
muted
#7A7779

Preview Lab

Preview with #2A0229

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

Preview Lab → · Contrast checker → · Palette generator →

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