#331F35#331F35

#331F35 is a dark, muted purple. Relative luminance 0.019; OKLCH L 27.4% C 0.048 H 323.6°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#331F35
RGBrgb(51, 31, 53)
HSLhsl(295, 26%, 16%)
HSVhsv(295, 42%, 21%)
CMYKcmyk(3.8%, 41.5%, 0%, 79.2%)
CIE-LABlab(15.17, 14.28, -10.51)
CIE-LCHlch(15.17, 17.73, 323.66°)
OKLaboklab(27.45% 0.0388 -0.0286)
OKLCHoklch(27.45% 0.048 323.6)
XYZxyz(2.4978, 1.9409, 3.6105)
Luminance0.0194 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F35 #21351F
analogous
#281F35 #331F35 #351F2C
triadic
#331F35 #35331F #1F3533
tetradic
#331F35 #35281F #21351F #1F2C35
square
#331F35 #35281F #21351F #1F2C35
split-complementary
#331F35 #2C351F #1F3528
monochromatic
#130B13 #130B13 #331F35 #58365C #7D4C82

Accessibility & contrast

On white

15.13
#331F35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#331F35 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331F35
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F35#FFFFFF#000000##FFFFFF
##331F351.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2536
Deuteranopia (green-blind)
#222734
Tritanopia (blue-blind)
#342127
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331f35;
/* rgb */ color: rgb(51, 31, 53);
/* oklch */ color: oklch(27.4% 0.048 323.6);
Tailwind
colors: {
  custom: {
    50: '#6b5b6c',
    500: '#331f35',
    950: '#000000',
  },
}
SCSS
$custom: #331f35;
$custom-light: #6b5b6c;
$custom-dark: #000000;
JSON
{
  "hex": "#331f35",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 53
  },
  "hsl": {
    "h": 294.545,
    "s": 26.19,
    "l": 16.471
  },
  "oklch": {
    "l": 0.27446,
    "c": 0.04826,
    "h": 323.6
  },
  "luminance": 0.01941
}

Semantic roles & 50–950 ramp

primary
#331F35
secondary
#4B6848
accent
#C3656E
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060407
muted
#7A797A

Preview Lab

Preview with #331F35

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

Preview Lab → · Contrast checker → · Palette generator →

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