#331E31#331E31

#331E31 is a dark, muted purple. Relative luminance 0.019; OKLCH L 27.0% C 0.045 H 330.1°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#331E31
RGBrgb(51, 30, 49)
HSLhsl(306, 26%, 16%)
HSVhsv(306, 41%, 20%)
CMYKcmyk(0%, 41.2%, 3.9%, 80%)
CIE-LABlab(14.70, 14.02, -8.38)
CIE-LCHlch(14.70, 16.33, 329.13°)
OKLaboklab(27.03% 0.0394 -0.0226)
OKLCHoklch(27.03% 0.045 330.1)
XYZxyz(2.3839, 1.8542, 3.1375)
Luminance0.0185 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E31 #1E3320
analogous
#2A1E33 #331E31 #331E26
triadic
#331E31 #31331E #1E3133
tetradic
#331E31 #332A1E #1E3320 #1E2633
square
#331E31 #332A1E #1E3320 #1E2633
split-complementary
#331E31 #26331E #1E332A
monochromatic
#130B13 #130B13 #331E31 #5A3556 #804B7B

Accessibility & contrast

On white

15.32
#331E31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331E31
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E31#FFFFFF#000000##FFFFFF
##331E311.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2332
Deuteranopia (green-blind)
#222630
Tritanopia (blue-blind)
#351F25
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331e31;
/* rgb */ color: rgb(51, 30, 49);
/* oklch */ color: oklch(27.0% 0.045 330.1);
Tailwind
colors: {
  custom: {
    50: '#6b5a69',
    500: '#331e31',
    950: '#000000',
  },
}
SCSS
$custom: #331e31;
$custom-light: #6b5a69;
$custom-dark: #000000;
JSON
{
  "hex": "#331e31",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 49
  },
  "hsl": {
    "h": 305.714,
    "s": 25.926,
    "l": 15.882
  },
  "oklch": {
    "l": 0.27026,
    "c": 0.04548,
    "h": 330.1
  },
  "luminance": 0.01854
}

Semantic roles & 50–950 ramp

primary
#331E31
secondary
#47664A
accent
#C26E65
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060306
muted
#7A787A

Preview Lab

Preview with #331E31

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

Preview Lab → · Contrast checker → · Palette generator →

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