#331E37#331E37

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

Color values

HEX#331E37
RGBrgb(51, 30, 55)
HSLhsl(290, 29%, 17%)
HSVhsv(290, 45%, 22%)
CMYKcmyk(7.3%, 45.5%, 0%, 78.4%)
CIE-LABlab(15.00, 15.46, -12.19)
CIE-LCHlch(15.00, 19.69, 321.73°)
OKLaboklab(27.35% 0.0413 -0.0334)
OKLCHoklch(27.35% 0.053 321)
XYZxyz(2.5190, 1.9083, 3.8493)
Luminance0.0191 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E37 #22371E
analogous
#271E37 #331E37 #371E2F
triadic
#331E37 #37331E #1E3733
tetradic
#331E37 #37271E #22371E #1E2F37
square
#331E37 #37271E #22371E #1E2F37
split-complementary
#331E37 #2F371E #1E3727
monochromatic
#120B14 #120B14 #331E37 #58345F #7C4986

Accessibility & contrast

On white

15.20
#331E37 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331E37
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E37#FFFFFF#000000##FFFFFF
##331E371.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2438
Deuteranopia (green-blind)
#202636
Tritanopia (blue-blind)
#342127
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331e37;
/* rgb */ color: rgb(51, 30, 55);
/* oklch */ color: oklch(27.3% 0.053 321.0);
Tailwind
colors: {
  custom: {
    50: '#6b5a6e',
    500: '#331e37',
    950: '#000000',
  },
}
SCSS
$custom: #331e37;
$custom-light: #6b5a6e;
$custom-dark: #000000;
JSON
{
  "hex": "#331e37",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 55
  },
  "hsl": {
    "h": 290.4,
    "s": 29.412,
    "l": 16.667
  },
  "oklch": {
    "l": 0.27347,
    "c": 0.05314,
    "h": 321
  },
  "luminance": 0.01908
}

Semantic roles & 50–950 ramp

primary
#331E37
secondary
#4C6B46
accent
#C66272
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060407
muted
#7A797A

Preview Lab

Preview with #331E37

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

Preview Lab → · Contrast checker → · Palette generator →

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