#331D31#331D31

#331D31 is a dark, muted purple. Relative luminance 0.018; OKLCH L 26.8% C 0.048 H 330.1°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#331D31
RGBrgb(51, 29, 49)
HSLhsl(305, 28%, 16%)
HSVhsv(305, 43%, 20%)
CMYKcmyk(0%, 43.1%, 3.9%, 80%)
CIE-LABlab(14.43, 14.70, -8.80)
CIE-LCHlch(14.43, 17.14, 329.09°)
OKLaboklab(26.82% 0.0414 -0.0238)
OKLCHoklch(26.82% 0.048 330.1)
XYZxyz(2.3589, 1.8044, 3.1292)
Luminance0.0180 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D31 #1D331F
analogous
#2A1D33 #331D31 #331D26
triadic
#331D31 #31331D #1D3133
tetradic
#331D31 #332A1D #1D331F #1D2633
square
#331D31 #332A1D #1D331F #1D2633
split-complementary
#331D31 #26331D #1D332A
monochromatic
#140B13 #140B13 #331D31 #5A3356 #81497C

Accessibility & contrast

On white

15.43
#331D31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#331D31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331D31
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D31#FFFFFF#000000##FFFFFF
##331D311.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2332
Deuteranopia (green-blind)
#222630
Tritanopia (blue-blind)
#351F24
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331d31;
/* rgb */ color: rgb(51, 29, 49);
/* oklch */ color: oklch(26.8% 0.048 330.1);
Tailwind
colors: {
  custom: {
    50: '#6b5969',
    500: '#331d31',
    950: '#000000',
  },
}
SCSS
$custom: #331d31;
$custom-light: #6b5969;
$custom-dark: #000000;
JSON
{
  "hex": "#331d31",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 49
  },
  "hsl": {
    "h": 305.455,
    "s": 27.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.26817,
    "c": 0.04774,
    "h": 330.1
  },
  "luminance": 0.01804
}

Semantic roles & 50–950 ramp

primary
#331D31
secondary
#456648
accent
#C46D64
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060306
muted
#7A787A

Preview Lab

Preview with #331D31

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

Preview Lab → · Contrast checker → · Palette generator →

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