#331D36#331D36

#331D36 is a dark, muted purple. Relative luminance 0.018; OKLCH L 27.1% C 0.054 H 322.6°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#331D36
RGBrgb(51, 29, 54)
HSLhsl(293, 30%, 16%)
HSVhsv(293, 46%, 21%)
CMYKcmyk(5.6%, 46.3%, 0%, 78.8%)
CIE-LABlab(14.67, 15.89, -11.99)
CIE-LCHlch(14.67, 19.91, 322.97°)
OKLaboklab(27.09% 0.0429 -0.0328)
OKLCHoklch(27.09% 0.054 322.6)
XYZxyz(2.4704, 1.8490, 3.7161)
Luminance0.0185 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D36 #20361D
analogous
#271D36 #331D36 #361D2D
triadic
#331D36 #36331D #1D3633
tetradic
#331D36 #36271D #20361D #1D2D36
square
#331D36 #36271D #20361D #1D2D36
split-complementary
#331D36 #2D361D #1D3627
monochromatic
#130B14 #130B14 #331D36 #59325E #7E4886

Accessibility & contrast

On white

15.33
#331D36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331D36
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D36#FFFFFF#000000##FFFFFF
##331D361.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2337
Deuteranopia (green-blind)
#202635
Tritanopia (blue-blind)
#342027
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331d36;
/* rgb */ color: rgb(51, 29, 54);
/* oklch */ color: oklch(27.1% 0.054 322.6);
Tailwind
colors: {
  custom: {
    50: '#6b596d',
    500: '#331d36',
    950: '#000000',
  },
}
SCSS
$custom: #331d36;
$custom-light: #6b596d;
$custom-dark: #000000;
JSON
{
  "hex": "#331d36",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 54
  },
  "hsl": {
    "h": 292.8,
    "s": 30.12,
    "l": 16.275
  },
  "oklch": {
    "l": 0.27086,
    "c": 0.05402,
    "h": 322.6
  },
  "luminance": 0.01849
}

Semantic roles & 50–950 ramp

primary
#331D36
secondary
#496A45
accent
#C6616E
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060307
muted
#7A787A

Preview Lab

Preview with #331D36

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

Preview Lab → · Contrast checker → · Palette generator →

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