#331D3A#331D3A

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

Color values

HEX#331D3A
RGBrgb(51, 29, 58)
HSLhsl(286, 33%, 17%)
HSVhsv(286, 50%, 23%)
CMYKcmyk(12.1%, 50%, 0%, 77.3%)
CIE-LABlab(14.89, 16.90, -14.49)
CIE-LCHlch(14.89, 22.26, 319.39°)
OKLaboklab(27.32% 0.0439 -0.04)
OKLCHoklch(27.32% 0.059 317.7)
XYZxyz(2.5682, 1.8881, 4.2313)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D3A #243A1D
analogous
#251D3A #331D3A #3A1D33
triadic
#331D3A #3A331D #1D3A33
tetradic
#331D3A #3A251D #243A1D #1D333A
square
#331D3A #3A251D #243A1D #1D333A
split-complementary
#331D3A #333A1D #1D3A25
monochromatic
#120A14 #120A14 #331D3A #573163 #7B468C

Accessibility & contrast

On white

15.24
#331D3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331D3A
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D3A#FFFFFF#000000##FFFFFF
##331D3A1.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18243B
Deuteranopia (green-blind)
#1E2639
Tritanopia (blue-blind)
#332128
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331d3a;
/* rgb */ color: rgb(51, 29, 58);
/* oklch */ color: oklch(27.3% 0.059 317.7);
Tailwind
colors: {
  custom: {
    50: '#6b5970',
    500: '#331d3a',
    950: '#000000',
  },
}
SCSS
$custom: #331d3a;
$custom-light: #6b5970;
$custom-dark: #000000;
JSON
{
  "hex": "#331d3a",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 58
  },
  "hsl": {
    "h": 285.517,
    "s": 33.333,
    "l": 17.059
  },
  "oklch": {
    "l": 0.27317,
    "c": 0.05938,
    "h": 317.7
  },
  "luminance": 0.01888
}

Semantic roles & 50–950 ramp

primary
#331D3A
secondary
#4F6E45
accent
#C95E78
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#070307
muted
#7A787A

Preview Lab

Preview with #331D3A

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

Preview Lab → · Contrast checker → · Palette generator →

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