#331F31#331F31

#331F31 is a dark, muted purple. Relative luminance 0.019; OKLCH L 27.2% C 0.043 H 330.2°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#331F31
RGBrgb(51, 31, 49)
HSLhsl(306, 24%, 16%)
HSVhsv(306, 39%, 20%)
CMYKcmyk(0%, 39.2%, 3.9%, 80%)
CIE-LABlab(14.98, 13.33, -7.95)
CIE-LCHlch(14.98, 15.52, 329.19°)
OKLaboklab(27.24% 0.0375 -0.0215)
OKLCHoklch(27.24% 0.043 330.2)
XYZxyz(2.4096, 1.9056, 3.1460)
Luminance0.0191 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F31 #1F3321
analogous
#2B1F33 #331F31 #331F27
triadic
#331F31 #31331F #1F3133
tetradic
#331F31 #332B1F #1F3321 #1F2733
square
#331F31 #332B1F #1F3321 #1F2733
split-complementary
#331F31 #27331F #1F332B
monochromatic
#130C12 #130C12 #331F31 #593656 #7F4D7A

Accessibility & contrast

On white

15.20
#331F31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#331F31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331F31
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F31#FFFFFF#000000##FFFFFF
##331F311.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2432
Deuteranopia (green-blind)
#232730
Tritanopia (blue-blind)
#352026
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331f31;
/* rgb */ color: rgb(51, 31, 49);
/* oklch */ color: oklch(27.2% 0.043 330.2);
Tailwind
colors: {
  custom: {
    50: '#6b5b69',
    500: '#331f31',
    950: '#000000',
  },
}
SCSS
$custom: #331f31;
$custom-light: #6b5b69;
$custom-dark: #000000;
JSON
{
  "hex": "#331f31",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 49
  },
  "hsl": {
    "h": 306,
    "s": 24.39,
    "l": 16.078
  },
  "oklch": {
    "l": 0.27239,
    "c": 0.04321,
    "h": 330.2
  },
  "luminance": 0.01906
}

Semantic roles & 50–950 ramp

primary
#331F31
secondary
#48664B
accent
#C17067
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060406
muted
#7A797A

Preview Lab

Preview with #331F31

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

Preview Lab → · Contrast checker → · Palette generator →

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