#331A3B#331A3B

#331A3B is a dark, moderate purple. Relative luminance 0.018; OKLCH L 26.8% C 0.067 H 317.5°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#331A3B
RGBrgb(51, 26, 59)
HSLhsl(285, 39%, 17%)
HSVhsv(285, 56%, 23%)
CMYKcmyk(13.6%, 55.9%, 0%, 76.9%)
CIE-LABlab(14.16, 19.15, -16.33)
CIE-LCHlch(14.16, 25.17, 319.55°)
OKLaboklab(26.8% 0.0494 -0.0453)
OKLCHoklch(26.8% 0.067 317.5)
XYZxyz(2.5239, 1.7584, 4.3433)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A3B #223B1A
analogous
#231A3B #331A3B #3B1A33
triadic
#331A3B #3B331A #1A3B33
tetradic
#331A3B #3B231A #223B1A #1A333B
square
#331A3B #3B231A #223B1A #1A333B
split-complementary
#331A3B #333B1A #1A3B23
monochromatic
#120915 #120915 #331A3B #582D65 #7C3F90

Accessibility & contrast

On white

15.54
#331A3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331A3B
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A3B#FFFFFF#000000##FFFFFF
##331A3B1.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14223C
Deuteranopia (green-blind)
#1B253A
Tritanopia (blue-blind)
#331F27
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331a3b;
/* rgb */ color: rgb(51, 26, 59);
/* oklch */ color: oklch(26.8% 0.067 317.5);
Tailwind
colors: {
  custom: {
    50: '#6c5771',
    500: '#331a3b',
    950: '#000000',
  },
}
SCSS
$custom: #331a3b;
$custom-light: #6c5771;
$custom-dark: #000000;
JSON
{
  "hex": "#331a3b",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 59
  },
  "hsl": {
    "h": 285.455,
    "s": 38.824,
    "l": 16.667
  },
  "oklch": {
    "l": 0.26796,
    "c": 0.06703,
    "h": 317.5
  },
  "luminance": 0.01758
}

Semantic roles & 50–950 ramp

primary
#331A3B
secondary
#4C7040
accent
#CF5976
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#070307
muted
#7A787A

Preview Lab

Preview with #331A3B

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

Preview Lab → · Contrast checker → · Palette generator →

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