#331A31#331A31

#331A31 is a dark, muted purple. Relative luminance 0.017; OKLCH L 26.2% C 0.054 H 329.9°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#331A31
RGBrgb(51, 26, 49)
HSLhsl(305, 32%, 15%)
HSVhsv(305, 49%, 20%)
CMYKcmyk(0%, 49%, 3.9%, 80%)
CIE-LABlab(13.62, 16.73, -10.04)
CIE-LCHlch(13.62, 19.51, 329.02°)
OKLaboklab(26.21% 0.0471 -0.0273)
OKLCHoklch(26.21% 0.054 329.9)
XYZxyz(2.2890, 1.6645, 3.1058)
Luminance0.0166 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A31 #1A331C
analogous
#281A33 #331A31 #331A24
triadic
#331A31 #31331A #1A3133
tetradic
#331A31 #33281A #1A331C #1A2433
square
#331A31 #33281A #1A331C #1A2433
split-complementary
#331A31 #24331A #1A3328
monochromatic
#140A13 #140A13 #331A31 #5C2F58 #84437F

Accessibility & contrast

On white

15.76
#331A31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#331A31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A31
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A31#FFFFFF#000000##FFFFFF
##331A311.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192132
Deuteranopia (green-blind)
#1F2430
Tritanopia (blue-blind)
#351C23
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #331a31;
/* rgb */ color: rgb(51, 26, 49);
/* oklch */ color: oklch(26.2% 0.054 329.9);
Tailwind
colors: {
  custom: {
    50: '#6b5769',
    500: '#331a31',
    950: '#000000',
  },
}
SCSS
$custom: #331a31;
$custom-light: #6b5769;
$custom-dark: #000000;
JSON
{
  "hex": "#331a31",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 49
  },
  "hsl": {
    "h": 304.8,
    "s": 32.468,
    "l": 15.098
  },
  "oklch": {
    "l": 0.26209,
    "c": 0.05443,
    "h": 329.9
  },
  "luminance": 0.01664
}

Semantic roles & 50–950 ramp

primary
#331A31
secondary
#416844
accent
#C9685F
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#070306
muted
#7A787A

Preview Lab

Preview with #331A31

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

Preview Lab → · Contrast checker → · Palette generator →

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