#2A152F#2A152F

#2A152F is a very dark, muted purple. Relative luminance 0.012; OKLCH L 23.8% C 0.056 H 319.7°. Best body text is #FFFFFF at 16.84:1 contrast (WCAG AA passes).

Color values

HEX#2A152F
RGBrgb(42, 21, 47)
HSLhsl(288, 38%, 13%)
HSVhsv(288, 55%, 18%)
CMYKcmyk(10.6%, 55.3%, 0%, 81.6%)
CIE-LABlab(10.81, 16.14, -13.07)
CIE-LCHlch(10.81, 20.76, 321.00°)
OKLaboklab(23.77% 0.0425 -0.0361)
OKLCHoklch(23.77% 0.056 319.7)
XYZxyz(1.7360, 1.2339, 2.8355)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A152F #1A2F15
analogous
#1D152F #2A152F #2F1527
triadic
#2A152F #2F2A15 #152F2A
tetradic
#2A152F #2F1D15 #1A2F15 #15272F
square
#2A152F #2F1D15 #1A2F15 #15272F
split-complementary
#2A152F #272F15 #152F1D
monochromatic
#130915 #130915 #2A152F #502859 #763B84

Accessibility & contrast

On white

16.84
#2A152F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A152F
16.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A152F#FFFFFF#000000##FFFFFF
##2A152F1.0016.841.2516.84
#FFFFFF16.841.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111C30
Deuteranopia (green-blind)
#171E2E
Tritanopia (blue-blind)
#2A181F
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a152f;
/* rgb */ color: rgb(42, 21, 47);
/* oklch */ color: oklch(23.8% 0.056 319.7);
Tailwind
colors: {
  custom: {
    50: '#645367',
    500: '#2a152f',
    950: '#000000',
  },
}
SCSS
$custom: #2a152f;
$custom-light: #645367;
$custom-dark: #000000;
JSON
{
  "hex": "#2a152f",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 47
  },
  "hsl": {
    "h": 288.462,
    "s": 38.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.2377,
    "c": 0.05577,
    "h": 319.7
  },
  "luminance": 0.01234
}

Semantic roles & 50–950 ramp

primary
#2A152F
secondary
#43653B
accent
#CE5A70
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050206
muted
#7A787A

Preview Lab

Preview with #2A152F

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

Preview Lab → · Contrast checker → · Palette generator →

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