#331E33#331E33

#331E33 is a dark, muted purple. Relative luminance 0.019; OKLCH L 27.1% C 0.048 H 326.8°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#331E33
RGBrgb(51, 30, 51)
HSLhsl(300, 26%, 16%)
HSVhsv(300, 41%, 20%)
CMYKcmyk(0%, 41.2%, 0%, 80%)
CIE-LABlab(14.80, 14.49, -9.66)
CIE-LCHlch(14.80, 17.41, 326.30°)
OKLaboklab(27.13% 0.0401 -0.0262)
OKLCHoklch(27.13% 0.048 326.8)
XYZxyz(2.4270, 1.8715, 3.3647)
Luminance0.0187 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E33 #1E331E
analogous
#281E33 #331E33 #331E28
triadic
#331E33 #33331E #1E3333
tetradic
#331E33 #33281E #1E331E #1E2833
square
#331E33 #33281E #1E331E #1E2833
split-complementary
#331E33 #28331E #1E3328
monochromatic
#130B13 #130B13 #331E33 #5A355A #804B80

Accessibility & contrast

On white

15.28
#331E33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331E33
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E33#FFFFFF#000000##FFFFFF
##331E331.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2434
Deuteranopia (green-blind)
#222632
Tritanopia (blue-blind)
#342026
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331e33;
/* rgb */ color: rgb(51, 30, 51);
/* oklch */ color: oklch(27.1% 0.048 326.8);
Tailwind
colors: {
  custom: {
    50: '#6b5a6a',
    500: '#331e33',
    950: '#000000',
  },
}
SCSS
$custom: #331e33;
$custom-light: #6b5a6a;
$custom-dark: #000000;
JSON
{
  "hex": "#331e33",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 51
  },
  "hsl": {
    "h": 300,
    "s": 25.926,
    "l": 15.882
  },
  "oklch": {
    "l": 0.27129,
    "c": 0.04794,
    "h": 326.8
  },
  "luminance": 0.01871
}

Semantic roles & 50–950 ramp

primary
#331E33
secondary
#476647
accent
#C26565
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060306
muted
#7A787A

Preview Lab

Preview with #331E33

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

Preview Lab → · Contrast checker → · Palette generator →

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