#2A162A#2A162A

#2A162A is a very dark, muted purple. Relative luminance 0.012; OKLCH L 23.7% C 0.047 H 326.9°. Best body text is #FFFFFF at 16.85:1 contrast (WCAG AA passes).

Color values

HEX#2A162A
RGBrgb(42, 22, 42)
HSLhsl(300, 31%, 13%)
HSVhsv(300, 48%, 16%)
CMYKcmyk(0%, 47.6%, 0%, 83.5%)
CIE-LABlab(10.80, 14.19, -9.40)
CIE-LCHlch(10.80, 17.03, 326.48°)
OKLaboklab(23.68% 0.0393 -0.0256)
OKLCHoklch(23.68% 0.047 326.9)
XYZxyz(1.6596, 1.2333, 2.3407)
Luminance0.0123 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A162A #162A16
analogous
#20162A #2A162A #2A1620
triadic
#2A162A #2A2A16 #162A2A
tetradic
#2A162A #2A2016 #162A16 #16202A
square
#2A162A #2A2016 #162A16 #16202A
split-complementary
#2A162A #202A16 #162A20
monochromatic
#140B14 #140B14 #2A162A #522B52 #7A407A

Accessibility & contrast

On white

16.85
#2A162A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2A162A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A162A
16.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A162A#FFFFFF#000000##FFFFFF
##2A162A1.0016.851.2516.85
#FFFFFF16.851.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141B2B
Deuteranopia (green-blind)
#1A1E29
Tritanopia (blue-blind)
#2B181E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a162a;
/* rgb */ color: rgb(42, 22, 42);
/* oklch */ color: oklch(23.7% 0.047 326.9);
Tailwind
colors: {
  custom: {
    50: '#645363',
    500: '#2a162a',
    950: '#000000',
  },
}
SCSS
$custom: #2a162a;
$custom-light: #645363;
$custom-dark: #000000;
JSON
{
  "hex": "#2a162a",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 42
  },
  "hsl": {
    "h": 300,
    "s": 31.25,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23677,
    "c": 0.04694,
    "h": 326.9
  },
  "luminance": 0.01233
}

Semantic roles & 50–950 ramp

primary
#2A162A
secondary
#3D5F3D
accent
#C76060
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#050205
muted
#7A7879

Preview Lab

Preview with #2A162A

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

Preview Lab → · Contrast checker → · Palette generator →

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