#331F36#331F36

#331F36 is a dark, muted purple. Relative luminance 0.019; OKLCH L 27.5% C 0.050 H 322.1°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#331F36
RGBrgb(51, 31, 54)
HSLhsl(292, 27%, 17%)
HSVhsv(292, 43%, 21%)
CMYKcmyk(5.6%, 42.6%, 0%, 78.8%)
CIE-LABlab(15.22, 14.53, -11.14)
CIE-LCHlch(15.22, 18.31, 322.52°)
OKLaboklab(27.5% 0.0392 -0.0304)
OKLCHoklch(27.5% 0.05 322.1)
XYZxyz(2.5210, 1.9502, 3.7329)
Luminance0.0195 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F36 #22361F
analogous
#281F36 #331F36 #361F2E
triadic
#331F36 #36331F #1F3633
tetradic
#331F36 #36281F #22361F #1F2E36
square
#331F36 #36281F #22361F #1F2E36
split-complementary
#331F36 #2E361F #1F3628
monochromatic
#120B13 #120B13 #331F36 #58355D #7C4C84

Accessibility & contrast

On white

15.11
#331F36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331F36
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F36#FFFFFF#000000##FFFFFF
##331F361.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2537
Deuteranopia (green-blind)
#212735
Tritanopia (blue-blind)
#342228
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331f36;
/* rgb */ color: rgb(51, 31, 54);
/* oklch */ color: oklch(27.5% 0.050 322.1);
Tailwind
colors: {
  custom: {
    50: '#6b5b6d',
    500: '#331f36',
    950: '#000000',
  },
}
SCSS
$custom: #331f36;
$custom-light: #6b5b6d;
$custom-dark: #000000;
JSON
{
  "hex": "#331f36",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 54
  },
  "hsl": {
    "h": 292.174,
    "s": 27.059,
    "l": 16.667
  },
  "oklch": {
    "l": 0.275,
    "c": 0.04959,
    "h": 322.1
  },
  "luminance": 0.0195
}

Semantic roles & 50–950 ramp

primary
#331F36
secondary
#4C6948
accent
#C36471
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060407
muted
#7A797A

Preview Lab

Preview with #331F36

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

Preview Lab → · Contrast checker → · Palette generator →

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