#331B39#331B39

#331B39 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 26.9% C 0.062 H 319.4°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#331B39
RGBrgb(51, 27, 57)
HSLhsl(288, 36%, 16%)
HSVhsv(288, 53%, 22%)
CMYKcmyk(10.5%, 52.6%, 0%, 77.6%)
CIE-LABlab(14.31, 17.98, -14.69)
CIE-LCHlch(14.31, 23.22, 320.75°)
OKLaboklab(26.86% 0.0473 -0.0405)
OKLCHoklch(26.86% 0.062 319.4)
XYZxyz(2.4956, 1.7832, 4.0828)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331B39 #21391B
analogous
#241B39 #331B39 #391B30
triadic
#331B39 #39331B #1B3933
tetradic
#331B39 #39241B #21391B #1B3039
square
#331B39 #39241B #21391B #1B3039
split-complementary
#331B39 #30391B #1B3924
monochromatic
#130A15 #130A15 #331B39 #582F63 #7D428C

Accessibility & contrast

On white

15.48
#331B39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#331B39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331B39
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331B39#FFFFFF#000000##FFFFFF
##331B391.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16233A
Deuteranopia (green-blind)
#1D2538
Tritanopia (blue-blind)
#331F27
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331b39;
/* rgb */ color: rgb(51, 27, 57);
/* oklch */ color: oklch(26.9% 0.062 319.4);
Tailwind
colors: {
  custom: {
    50: '#6b586f',
    500: '#331b39',
    950: '#000000',
  },
}
SCSS
$custom: #331b39;
$custom-light: #6b586f;
$custom-dark: #000000;
JSON
{
  "hex": "#331b39",
  "rgb": {
    "r": 51,
    "g": 27,
    "b": 57
  },
  "hsl": {
    "h": 288,
    "s": 35.714,
    "l": 16.471
  },
  "oklch": {
    "l": 0.26863,
    "c": 0.06229,
    "h": 319.4
  },
  "luminance": 0.01783
}

Semantic roles & 50–950 ramp

primary
#331B39
secondary
#4B6E42
accent
#CC5C72
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#070307
muted
#7A787A

Preview Lab

Preview with #331B39

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

Preview Lab → · Contrast checker → · Palette generator →

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