#331F33#331F33

#331F33 is a dark, muted purple. Relative luminance 0.019; OKLCH L 27.3% C 0.046 H 326.7°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#331F33
RGBrgb(51, 31, 51)
HSLhsl(300, 24%, 16%)
HSVhsv(300, 39%, 20%)
CMYKcmyk(0%, 39.2%, 0%, 80%)
CIE-LABlab(15.08, 13.80, -9.23)
CIE-LCHlch(15.08, 16.60, 326.21°)
OKLaboklab(27.34% 0.0382 -0.025)
OKLCHoklch(27.34% 0.046 326.7)
XYZxyz(2.4527, 1.9229, 3.3733)
Luminance0.0192 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F33 #1F331F
analogous
#291F33 #331F33 #331F29
triadic
#331F33 #33331F #1F3333
tetradic
#331F33 #33291F #1F331F #1F2933
square
#331F33 #33291F #1F331F #1F2933
split-complementary
#331F33 #29331F #1F3329
monochromatic
#130C13 #130C13 #331F33 #593659 #7F4D7F

Accessibility & contrast

On white

15.17
#331F33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#331F33 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331F33
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F33#FFFFFF#000000##FFFFFF
##331F331.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2434
Deuteranopia (green-blind)
#232732
Tritanopia (blue-blind)
#342126
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331f33;
/* rgb */ color: rgb(51, 31, 51);
/* oklch */ color: oklch(27.3% 0.046 326.7);
Tailwind
colors: {
  custom: {
    50: '#6b5b6a',
    500: '#331f33',
    950: '#000000',
  },
}
SCSS
$custom: #331f33;
$custom-light: #6b5b6a;
$custom-dark: #000000;
JSON
{
  "hex": "#331f33",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 51
  },
  "hsl": {
    "h": 300,
    "s": 24.39,
    "l": 16.078
  },
  "oklch": {
    "l": 0.27341,
    "c": 0.04567,
    "h": 326.7
  },
  "luminance": 0.01923
}

Semantic roles & 50–950 ramp

primary
#331F33
secondary
#486648
accent
#C16767
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060406
muted
#7A797A

Preview Lab

Preview with #331F33

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

Preview Lab → · Contrast checker → · Palette generator →

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