#331E3A#331E3A

#331E3A is a dark, muted purple. Relative luminance 0.019; OKLCH L 27.5% C 0.057 H 317.3°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#331E3A
RGBrgb(51, 30, 58)
HSLhsl(285, 32%, 17%)
HSVhsv(285, 48%, 23%)
CMYKcmyk(12.1%, 48.3%, 0%, 77.3%)
CIE-LABlab(15.16, 16.22, -14.07)
CIE-LCHlch(15.16, 21.47, 319.06°)
OKLaboklab(27.52% 0.0421 -0.0388)
OKLCHoklch(27.52% 0.057 317.3)
XYZxyz(2.5931, 1.9379, 4.2396)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E3A #253A1E
analogous
#251E3A #331E3A #3A1E33
triadic
#331E3A #3A331E #1E3A33
tetradic
#331E3A #3A251E #253A1E #1E333A
square
#331E3A #3A251E #253A1E #1E333A
split-complementary
#331E3A #333A1E #1E3A25
monochromatic
#120A14 #120A14 #331E3A #563362 #7A488B

Accessibility & contrast

On white

15.13
#331E3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331E3A
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E3A#FFFFFF#000000##FFFFFF
##331E3A1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A253B
Deuteranopia (green-blind)
#1F2739
Tritanopia (blue-blind)
#332229
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331e3a;
/* rgb */ color: rgb(51, 30, 58);
/* oklch */ color: oklch(27.5% 0.057 317.3);
Tailwind
colors: {
  custom: {
    50: '#6b5a70',
    500: '#331e3a',
    950: '#000000',
  },
}
SCSS
$custom: #331e3a;
$custom-light: #6b5a70;
$custom-dark: #000000;
JSON
{
  "hex": "#331e3a",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 58
  },
  "hsl": {
    "h": 285,
    "s": 31.818,
    "l": 17.255
  },
  "oklch": {
    "l": 0.27519,
    "c": 0.05724,
    "h": 317.3
  },
  "luminance": 0.01938
}

Semantic roles & 50–950 ramp

primary
#331E3A
secondary
#506E46
accent
#C8607A
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#070407
muted
#7A797A

Preview Lab

Preview with #331E3A

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

Preview Lab → · Contrast checker → · Palette generator →

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