#331E39#331E39

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

Color values

HEX#331E39
RGBrgb(51, 30, 57)
HSLhsl(287, 31%, 17%)
HSVhsv(287, 47%, 22%)
CMYKcmyk(10.5%, 47.4%, 0%, 77.6%)
CIE-LABlab(15.10, 15.96, -13.45)
CIE-LCHlch(15.10, 20.87, 319.89°)
OKLaboklab(27.46% 0.0418 -0.037)
OKLCHoklch(27.46% 0.056 318.5)
XYZxyz(2.5679, 1.9278, 4.1069)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E39 #24391E
analogous
#261E39 #331E39 #391E32
triadic
#331E39 #39331E #1E3933
tetradic
#331E39 #39261E #24391E #1E3239
square
#331E39 #39261E #24391E #1E3239
split-complementary
#331E39 #32391E #1E3926
monochromatic
#120B14 #120B14 #331E39 #573361 #7B4889

Accessibility & contrast

On white

15.16
#331E39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331E39
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E39#FFFFFF#000000##FFFFFF
##331E391.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A243A
Deuteranopia (green-blind)
#1F2738
Tritanopia (blue-blind)
#332128
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331e39;
/* rgb */ color: rgb(51, 30, 57);
/* oklch */ color: oklch(27.5% 0.056 318.5);
Tailwind
colors: {
  custom: {
    50: '#6b5a6f',
    500: '#331e39',
    950: '#000000',
  },
}
SCSS
$custom: #331e39;
$custom-light: #6b5a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#331e39",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 57
  },
  "hsl": {
    "h": 286.667,
    "s": 31.034,
    "l": 17.059
  },
  "oklch": {
    "l": 0.27461,
    "c": 0.05586,
    "h": 318.5
  },
  "luminance": 0.01928
}

Semantic roles & 50–950 ramp

primary
#331E39
secondary
#4F6D46
accent
#C76177
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060407
muted
#7A797A

Preview Lab

Preview with #331E39

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

Preview Lab → · Contrast checker → · Palette generator →

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