#2A032A#2A032A

#2A032A is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.5% C 0.085 H 328.1°. Best body text is #FFFFFF at 18.34:1 contrast (WCAG AA passes).

Color values

HEX#2A032A
RGBrgb(42, 3, 42)
HSLhsl(300, 87%, 9%)
HSVhsv(300, 93%, 16%)
CMYKcmyk(0%, 92.9%, 0%, 83.5%)
CIE-LABlab(6.55, 25.54, -16.06)
CIE-LCHlch(6.55, 30.17, 327.84°)
OKLaboklab(20.49% 0.0725 -0.045)
OKLCHoklch(20.49% 0.085 328.1)
XYZxyz(1.4053, 0.7246, 2.2559)
Luminance0.0073 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A032A #032A03
analogous
#17032A #2A032A #2A0317
triadic
#2A032A #2A2A03 #032A2A
tetradic
#2A032A #2A1703 #032A03 #03172A
square
#2A032A #2A1703 #032A03 #03172A
split-complementary
#2A032A #172A03 #032A17
monochromatic
#1D021D #1D021D #2A032A #630763 #9C0B9C

Accessibility & contrast

On white

18.34
#2A032A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A032A
18.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A032A#FFFFFF#000000##FFFFFF
##2A032A1.0018.341.1518.34
#FFFFFF18.341.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112B
Deuteranopia (green-blind)
#0D1629
Tritanopia (blue-blind)
#2C0816
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2a032a;
/* rgb */ color: rgb(42, 3, 42);
/* oklch */ color: oklch(20.5% 0.085 328.1);
Tailwind
colors: {
  custom: {
    50: '#654863',
    500: '#2a032a',
    950: '#000000',
  },
}
SCSS
$custom: #2a032a;
$custom-light: #654863;
$custom-dark: #000000;
JSON
{
  "hex": "#2a032a",
  "rgb": {
    "r": 42,
    "g": 3,
    "b": 42
  },
  "hsl": {
    "h": 300,
    "s": 86.667,
    "l": 8.824
  },
  "oklch": {
    "l": 0.20488,
    "c": 0.08534,
    "h": 328.1
  },
  "luminance": 0.00725
}

Semantic roles & 50–950 ramp

primary
#2A032A
secondary
#1B6E1B
accent
#FD2B2B
background
#F6F4F5
surface
#EBE6EA
border
#C6C2C6
text
#060005
muted
#7A7779

Preview Lab

Preview with #2A032A

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

Preview Lab → · Contrast checker → · Palette generator →

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