#331D3B#331D3B

#331D3B is a dark, moderate purple. Relative luminance 0.019; OKLCH L 27.4% C 0.061 H 316.6°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#331D3B
RGBrgb(51, 29, 59)
HSLhsl(284, 34%, 17%)
HSVhsv(284, 51%, 23%)
CMYKcmyk(13.6%, 50.8%, 0%, 76.9%)
CIE-LABlab(14.94, 17.15, -15.11)
CIE-LCHlch(14.94, 22.86, 318.63°)
OKLaboklab(27.38% 0.0441 -0.0418)
OKLCHoklch(27.38% 0.061 316.6)
XYZxyz(2.5939, 1.8984, 4.3666)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D3B #253B1D
analogous
#241D3B #331D3B #3B1D34
triadic
#331D3B #3B331D #1D3B33
tetradic
#331D3B #3B241D #253B1D #1D343B
square
#331D3B #3B241D #253B1D #1D343B
split-complementary
#331D3B #343B1D #1D3B24
monochromatic
#120A15 #120A15 #331D3B #563164 #7A458D

Accessibility & contrast

On white

15.22
#331D3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331D3B
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D3B#FFFFFF#000000##FFFFFF
##331D3B1.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18243C
Deuteranopia (green-blind)
#1E263A
Tritanopia (blue-blind)
#332129
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331d3b;
/* rgb */ color: rgb(51, 29, 59);
/* oklch */ color: oklch(27.4% 0.061 316.6);
Tailwind
colors: {
  custom: {
    50: '#6b5971',
    500: '#331d3b',
    950: '#000000',
  },
}
SCSS
$custom: #331d3b;
$custom-light: #6b5971;
$custom-dark: #000000;
JSON
{
  "hex": "#331d3b",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 59
  },
  "hsl": {
    "h": 284,
    "s": 34.091,
    "l": 17.255
  },
  "oklch": {
    "l": 0.27377,
    "c": 0.06076,
    "h": 316.6
  },
  "luminance": 0.01898
}

Semantic roles & 50–950 ramp

primary
#331D3B
secondary
#506F44
accent
#CA5E7B
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#070307
muted
#7A787A

Preview Lab

Preview with #331D3B

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

Preview Lab → · Contrast checker → · Palette generator →

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