#2A052B#2A052B

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

Color values

HEX#2A052B
RGBrgb(42, 5, 43)
HSLhsl(298, 79%, 9%)
HSVhsv(298, 88%, 17%)
CMYKcmyk(2.3%, 88.4%, 0%, 83.1%)
CIE-LABlab(7.00, 24.72, -16.09)
CIE-LCHlch(7.00, 29.49, 326.93°)
OKLaboklab(20.88% 0.0689 -0.0449)
OKLCHoklch(20.88% 0.082 326.9)
XYZxyz(1.4451, 0.7753, 2.3586)
Luminance0.0077 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A052B #062B05
analogous
#17052B #2A052B #2B0519
triadic
#2A052B #2B2A05 #052B2A
tetradic
#2A052B #2B1705 #062B05 #05192B
square
#2A052B #2B1705 #062B05 #05192B
split-complementary
#2A052B #192B05 #052B17
monochromatic
#1B031B #1B031B #2A052B #600B62 #951299

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A052B#FFFFFF#000000##FFFFFF
##2A052B1.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)
#01122C
Deuteranopia (green-blind)
#0E172A
Tritanopia (blue-blind)
#2B0A17
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2a052b;
/* rgb */ color: rgb(42, 5, 43);
/* oklch */ color: oklch(20.9% 0.082 326.9);
Tailwind
colors: {
  custom: {
    50: '#654964',
    500: '#2a052b',
    950: '#000000',
  },
}
SCSS
$custom: #2a052b;
$custom-light: #654964;
$custom-dark: #000000;
JSON
{
  "hex": "#2a052b",
  "rgb": {
    "r": 42,
    "g": 5,
    "b": 43
  },
  "hsl": {
    "h": 298.421,
    "s": 79.167,
    "l": 9.412
  },
  "oklch": {
    "l": 0.20876,
    "c": 0.08222,
    "h": 326.9
  },
  "luminance": 0.00775
}

Semantic roles & 50–950 ramp

primary
#2A052B
secondary
#216D1F
accent
#F63237
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060105
muted
#7A777A

Preview Lab

Preview with #2A052B

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

Preview Lab → · Contrast checker → · Palette generator →

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