#2A152E#2A152E

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

Color values

HEX#2A152E
RGBrgb(42, 21, 46)
HSLhsl(290, 37%, 13%)
HSVhsv(290, 54%, 18%)
CMYKcmyk(8.7%, 54.3%, 0%, 82%)
CIE-LABlab(10.75, 15.88, -12.43)
CIE-LCHlch(10.75, 20.16, 321.96°)
OKLaboklab(23.71% 0.0423 -0.0342)
OKLCHoklch(23.71% 0.054 321)
XYZxyz(1.7161, 1.2259, 2.7305)
Luminance0.0123 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A152E #192E15
analogous
#1D152E #2A152E #2E1525
triadic
#2A152E #2E2A15 #152E2A
tetradic
#2A152E #2E1D15 #192E15 #15252E
square
#2A152E #2E1D15 #192E15 #15252E
split-complementary
#2A152E #252E15 #152E1D
monochromatic
#130A15 #130A15 #2A152E #502858 #773B82

Accessibility & contrast

On white

16.86
#2A152E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A152E
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A152E#FFFFFF#000000##FFFFFF
##2A152E1.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a152e;
/* rgb */ color: rgb(42, 21, 46);
/* oklch */ color: oklch(23.7% 0.054 321.0);
Tailwind
colors: {
  custom: {
    50: '#645366',
    500: '#2a152e',
    950: '#000000',
  },
}
SCSS
$custom: #2a152e;
$custom-light: #645366;
$custom-dark: #000000;
JSON
{
  "hex": "#2a152e",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 46
  },
  "hsl": {
    "h": 290.4,
    "s": 37.313,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23708,
    "c": 0.05442,
    "h": 321
  },
  "luminance": 0.01226
}

Semantic roles & 50–950 ramp

primary
#2A152E
secondary
#41643B
accent
#CD5B6D
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050206
muted
#7A787A

Preview Lab

Preview with #2A152E

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

Preview Lab → · Contrast checker → · Palette generator →

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