#331C39#331C39

#331C39 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.1% C 0.060 H 319.1°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#331C39
RGBrgb(51, 28, 57)
HSLhsl(288, 34%, 17%)
HSVhsv(288, 51%, 22%)
CMYKcmyk(10.5%, 50.9%, 0%, 77.6%)
CIE-LABlab(14.57, 17.32, -14.28)
CIE-LCHlch(14.57, 22.45, 320.48°)
OKLaboklab(27.06% 0.0455 -0.0394)
OKLCHoklch(27.06% 0.06 319.1)
XYZxyz(2.5189, 1.8298, 4.0906)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C39 #22391C
analogous
#251C39 #331C39 #391C31
triadic
#331C39 #39331C #1C3933
tetradic
#331C39 #39251C #22391C #1C3139
square
#331C39 #39251C #22391C #1C3139
split-complementary
#331C39 #31391C #1C3925
monochromatic
#120A15 #120A15 #331C39 #583062 #7C448B

Accessibility & contrast

On white

15.37
#331C39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331C39
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C39#FFFFFF#000000##FFFFFF
##331C391.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18233A
Deuteranopia (green-blind)
#1E2638
Tritanopia (blue-blind)
#332027
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331c39;
/* rgb */ color: rgb(51, 28, 57);
/* oklch */ color: oklch(27.1% 0.060 319.1);
Tailwind
colors: {
  custom: {
    50: '#6b596f',
    500: '#331c39',
    950: '#000000',
  },
}
SCSS
$custom: #331c39;
$custom-light: #6b596f;
$custom-dark: #000000;
JSON
{
  "hex": "#331c39",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 57
  },
  "hsl": {
    "h": 287.586,
    "s": 34.118,
    "l": 16.667
  },
  "oklch": {
    "l": 0.27059,
    "c": 0.06017,
    "h": 319.1
  },
  "luminance": 0.0183
}

Semantic roles & 50–950 ramp

primary
#331C39
secondary
#4C6E43
accent
#CA5E74
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#070307
muted
#7A787A

Preview Lab

Preview with #331C39

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

Preview Lab → · Contrast checker → · Palette generator →

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