#331D39#331D39

#331D39 is a dark, muted purple. Relative luminance 0.019; OKLCH L 27.3% C 0.058 H 318.8°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#331D39
RGBrgb(51, 29, 57)
HSLhsl(287, 33%, 17%)
HSVhsv(287, 49%, 22%)
CMYKcmyk(10.5%, 49.1%, 0%, 77.6%)
CIE-LABlab(14.83, 16.64, -13.87)
CIE-LCHlch(14.83, 21.66, 320.20°)
OKLaboklab(27.26% 0.0437 -0.0382)
OKLCHoklch(27.26% 0.058 318.8)
XYZxyz(2.5430, 1.8780, 4.0986)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D39 #23391D
analogous
#251D39 #331D39 #391D31
triadic
#331D39 #39331D #1D3933
tetradic
#331D39 #39251D #23391D #1D3139
square
#331D39 #39251D #23391D #1D3139
split-complementary
#331D39 #31391D #1D3925
monochromatic
#120A14 #120A14 #331D39 #573262 #7C468A

Accessibility & contrast

On white

15.27
#331D39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331D39
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D39#FFFFFF#000000##FFFFFF
##331D391.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19243A
Deuteranopia (green-blind)
#1F2638
Tritanopia (blue-blind)
#332128
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331d39;
/* rgb */ color: rgb(51, 29, 57);
/* oklch */ color: oklch(27.3% 0.058 318.8);
Tailwind
colors: {
  custom: {
    50: '#6b596f',
    500: '#331d39',
    950: '#000000',
  },
}
SCSS
$custom: #331d39;
$custom-light: #6b596f;
$custom-dark: #000000;
JSON
{
  "hex": "#331d39",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 57
  },
  "hsl": {
    "h": 287.143,
    "s": 32.558,
    "l": 16.863
  },
  "oklch": {
    "l": 0.27258,
    "c": 0.05802,
    "h": 318.8
  },
  "luminance": 0.01878
}

Semantic roles & 50–950 ramp

primary
#331D39
secondary
#4D6D45
accent
#C95F76
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#070307
muted
#7A787A

Preview Lab

Preview with #331D39

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

Preview Lab → · Contrast checker → · Palette generator →

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