#331F34#331F34

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

Color values

HEX#331F34
RGBrgb(51, 31, 52)
HSLhsl(297, 25%, 16%)
HSVhsv(297, 40%, 20%)
CMYKcmyk(1.9%, 40.4%, 0%, 79.6%)
CIE-LABlab(15.13, 14.04, -9.87)
CIE-LCHlch(15.13, 17.16, 324.89°)
OKLaboklab(27.39% 0.0385 -0.0268)
OKLCHoklch(27.39% 0.047 325.1)
XYZxyz(2.4750, 1.9318, 3.4906)
Luminance0.0193 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F34 #20341F
analogous
#291F34 #331F34 #341F2B
triadic
#331F34 #34331F #1F3433
tetradic
#331F34 #34291F #20341F #1F2B34
square
#331F34 #34291F #20341F #1F2B34
split-complementary
#331F34 #2B341F #1F3429
monochromatic
#130B13 #130B13 #331F34 #59365A #7E4D81

Accessibility & contrast

On white

15.15
#331F34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331F34
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F34#FFFFFF#000000##FFFFFF
##331F341.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331f34;
/* rgb */ color: rgb(51, 31, 52);
/* oklch */ color: oklch(27.4% 0.047 325.1);
Tailwind
colors: {
  custom: {
    50: '#6b5b6b',
    500: '#331f34',
    950: '#000000',
  },
}
SCSS
$custom: #331f34;
$custom-light: #6b5b6b;
$custom-dark: #000000;
JSON
{
  "hex": "#331f34",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 52
  },
  "hsl": {
    "h": 297.143,
    "s": 25.301,
    "l": 16.275
  },
  "oklch": {
    "l": 0.27393,
    "c": 0.04695,
    "h": 325.1
  },
  "luminance": 0.01932
}

Semantic roles & 50–950 ramp

primary
#331F34
secondary
#496748
accent
#C2666A
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060406
muted
#7A797A

Preview Lab

Preview with #331F34

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

Preview Lab → · Contrast checker → · Palette generator →

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