#331E36#331E36

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

Color values

HEX#331E36
RGBrgb(51, 30, 54)
HSLhsl(293, 29%, 16%)
HSVhsv(293, 44%, 21%)
CMYKcmyk(5.6%, 44.4%, 0%, 78.8%)
CIE-LABlab(14.95, 15.21, -11.57)
CIE-LCHlch(14.95, 19.11, 322.75°)
OKLaboklab(27.29% 0.041 -0.0316)
OKLCHoklch(27.29% 0.052 322.4)
XYZxyz(2.4953, 1.8988, 3.7244)
Luminance0.0190 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E36 #21361E
analogous
#271E36 #331E36 #361E2D
triadic
#331E36 #36331E #1E3633
tetradic
#331E36 #36271E #21361E #1E2D36
square
#331E36 #36271E #21361E #1E2D36
split-complementary
#331E36 #2D361E #1E3627
monochromatic
#130B14 #130B14 #331E36 #58345D #7D4A85

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##331E36#FFFFFF#000000##FFFFFF
##331E361.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)
#1B2437
Deuteranopia (green-blind)
#212635
Tritanopia (blue-blind)
#342127
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331e36;
/* rgb */ color: rgb(51, 30, 54);
/* oklch */ color: oklch(27.3% 0.052 322.4);
Tailwind
colors: {
  custom: {
    50: '#6b5a6d',
    500: '#331e36',
    950: '#000000',
  },
}
SCSS
$custom: #331e36;
$custom-light: #6b5a6d;
$custom-dark: #000000;
JSON
{
  "hex": "#331e36",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 54
  },
  "hsl": {
    "h": 292.5,
    "s": 28.571,
    "l": 16.471
  },
  "oklch": {
    "l": 0.27291,
    "c": 0.05181,
    "h": 322.4
  },
  "luminance": 0.01899
}

Semantic roles & 50–950 ramp

primary
#331E36
secondary
#4B6946
accent
#C5636F
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060407
muted
#7A797A

Preview Lab

Preview with #331E36

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

Preview Lab → · Contrast checker → · Palette generator →

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