#2B152F#2B152F

#2B152F is a very dark, muted purple. Relative luminance 0.013; OKLCH L 23.9% C 0.056 H 321.3°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#2B152F
RGBrgb(43, 21, 47)
HSLhsl(291, 38%, 13%)
HSVhsv(291, 55%, 18%)
CMYKcmyk(8.5%, 55.3%, 0%, 81.6%)
CIE-LABlab(10.96, 16.52, -12.81)
CIE-LCHlch(10.96, 20.91, 322.19°)
OKLaboklab(23.92% 0.0441 -0.0353)
OKLCHoklch(23.92% 0.056 321.3)
XYZxyz(1.7775, 1.2552, 2.8374)
Luminance0.0126 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B152F #192F15
analogous
#1E152F #2B152F #2F1526
triadic
#2B152F #2F2B15 #152F2B
tetradic
#2B152F #2F1E15 #192F15 #15262F
square
#2B152F #2F1E15 #192F15 #15262F
split-complementary
#2B152F #262F15 #152F1E
monochromatic
#130915 #130915 #2B152F #522859 #783B84

Accessibility & contrast

On white

16.79
#2B152F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B152F
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B152F#FFFFFF#000000##FFFFFF
##2B152F1.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b152f;
/* rgb */ color: rgb(43, 21, 47);
/* oklch */ color: oklch(23.9% 0.056 321.3);
Tailwind
colors: {
  custom: {
    50: '#655367',
    500: '#2b152f',
    950: '#000000',
  },
}
SCSS
$custom: #2b152f;
$custom-light: #655367;
$custom-dark: #000000;
JSON
{
  "hex": "#2b152f",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 47
  },
  "hsl": {
    "h": 290.769,
    "s": 38.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23918,
    "c": 0.05647,
    "h": 321.3
  },
  "luminance": 0.01255
}

Semantic roles & 50–950 ramp

primary
#2B152F
secondary
#41653B
accent
#CE5A6C
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050206
muted
#7A787A

Preview Lab

Preview with #2B152F

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

Preview Lab → · Contrast checker → · Palette generator →

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