#331A39#331A39

#331A39 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 26.7% C 0.064 H 319.6°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#331A39
RGBrgb(51, 26, 57)
HSLhsl(288, 37%, 16%)
HSVhsv(288, 54%, 22%)
CMYKcmyk(10.5%, 54.4%, 0%, 77.6%)
CIE-LABlab(14.05, 18.64, -15.09)
CIE-LCHlch(14.05, 23.99, 321.01°)
OKLaboklab(26.67% 0.0491 -0.0417)
OKLCHoklch(26.67% 0.064 319.6)
XYZxyz(2.4731, 1.7381, 4.0753)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A39 #20391A
analogous
#241A39 #331A39 #391A30
triadic
#331A39 #39331A #1A3933
tetradic
#331A39 #39241A #20391A #1A3039
square
#331A39 #39241A #20391A #1A3039
split-complementary
#331A39 #30391A #1A3924
monochromatic
#130A15 #130A15 #331A39 #592D63 #7E408D

Accessibility & contrast

On white

15.58
#331A39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#331A39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A39
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A39#FFFFFF#000000##FFFFFF
##331A391.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15223A
Deuteranopia (green-blind)
#1C2538
Tritanopia (blue-blind)
#331E26
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331a39;
/* rgb */ color: rgb(51, 26, 57);
/* oklch */ color: oklch(26.7% 0.064 319.6);
Tailwind
colors: {
  custom: {
    50: '#6b576f',
    500: '#331a39',
    950: '#000000',
  },
}
SCSS
$custom: #331a39;
$custom-light: #6b576f;
$custom-dark: #000000;
JSON
{
  "hex": "#331a39",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 57
  },
  "hsl": {
    "h": 288.387,
    "s": 37.349,
    "l": 16.275
  },
  "oklch": {
    "l": 0.26671,
    "c": 0.0644,
    "h": 319.6
  },
  "luminance": 0.01738
}

Semantic roles & 50–950 ramp

primary
#331A39
secondary
#496E41
accent
#CD5A71
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#070307
muted
#7A787A

Preview Lab

Preview with #331A39

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

Preview Lab → · Contrast checker → · Palette generator →

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