#331D37#331D37

#331D37 is a dark, muted purple. Relative luminance 0.019; OKLCH L 27.1% C 0.055 H 321.3°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#331D37
RGBrgb(51, 29, 55)
HSLhsl(291, 31%, 16%)
HSVhsv(291, 47%, 22%)
CMYKcmyk(7.3%, 47.3%, 0%, 78.4%)
CIE-LABlab(14.73, 16.14, -12.62)
CIE-LCHlch(14.73, 20.49, 321.98°)
OKLaboklab(27.14% 0.0432 -0.0346)
OKLCHoklch(27.14% 0.055 321.3)
XYZxyz(2.4941, 1.8585, 3.8410)
Luminance0.0186 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D37 #21371D
analogous
#261D37 #331D37 #371D2E
triadic
#331D37 #37331D #1D3733
tetradic
#331D37 #37261D #21371D #1D2E37
square
#331D37 #37261D #21371D #1D2E37
split-complementary
#331D37 #2E371D #1D3726
monochromatic
#130B14 #130B14 #331D37 #58325F #7D4787

Accessibility & contrast

On white

15.31
#331D37 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#331D37 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331D37
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D37#FFFFFF#000000##FFFFFF
##331D371.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2438
Deuteranopia (green-blind)
#1F2636
Tritanopia (blue-blind)
#342027
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331d37;
/* rgb */ color: rgb(51, 29, 55);
/* oklch */ color: oklch(27.1% 0.055 321.3);
Tailwind
colors: {
  custom: {
    50: '#6b596e',
    500: '#331d37',
    950: '#000000',
  },
}
SCSS
$custom: #331d37;
$custom-light: #6b596e;
$custom-dark: #000000;
JSON
{
  "hex": "#331d37",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 55
  },
  "hsl": {
    "h": 290.769,
    "s": 30.952,
    "l": 16.471
  },
  "oklch": {
    "l": 0.27142,
    "c": 0.05534,
    "h": 321.3
  },
  "luminance": 0.01858
}

Semantic roles & 50–950 ramp

primary
#331D37
secondary
#4B6B45
accent
#C76170
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#070307
muted
#7A787A

Preview Lab

Preview with #331D37

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

Preview Lab → · Contrast checker → · Palette generator →

#331D37 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva