#331F37#331F37

#331F37 is a dark, muted purple. Relative luminance 0.020; OKLCH L 27.6% C 0.051 H 320.8°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#331F37
RGBrgb(51, 31, 55)
HSLhsl(290, 28%, 17%)
HSVhsv(290, 44%, 22%)
CMYKcmyk(7.3%, 43.6%, 0%, 78.4%)
CIE-LABlab(15.27, 14.78, -11.77)
CIE-LCHlch(15.27, 18.89, 321.46°)
OKLaboklab(27.56% 0.0394 -0.0322)
OKLCHoklch(27.56% 0.051 320.8)
XYZxyz(2.5447, 1.9597, 3.8579)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F37 #23371F
analogous
#271F37 #331F37 #371F2F
triadic
#331F37 #37331F #1F3733
tetradic
#331F37 #37271F #23371F #1F2F37
square
#331F37 #37271F #23371F #1F2F37
split-complementary
#331F37 #2F371F #1F3727
monochromatic
#120B14 #120B14 #331F37 #57355E #7C4B85

Accessibility & contrast

On white

15.09
#331F37 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#331F37 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331F37
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F37#FFFFFF#000000##FFFFFF
##331F371.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2538
Deuteranopia (green-blind)
#212736
Tritanopia (blue-blind)
#332228
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331f37;
/* rgb */ color: rgb(51, 31, 55);
/* oklch */ color: oklch(27.6% 0.051 320.8);
Tailwind
colors: {
  custom: {
    50: '#6b5b6e',
    500: '#331f37',
    950: '#000000',
  },
}
SCSS
$custom: #331f37;
$custom-light: #6b5b6e;
$custom-dark: #000000;
JSON
{
  "hex": "#331f37",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 55
  },
  "hsl": {
    "h": 290,
    "s": 27.907,
    "l": 16.863
  },
  "oklch": {
    "l": 0.27555,
    "c": 0.05093,
    "h": 320.8
  },
  "luminance": 0.0196
}

Semantic roles & 50–950 ramp

primary
#331F37
secondary
#4D6A48
accent
#C46474
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060407
muted
#7A797A

Preview Lab

Preview with #331F37

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

Preview Lab → · Contrast checker → · Palette generator →

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