#331F30#331F30

#331F30 is a dark, muted purple. Relative luminance 0.019; OKLCH L 27.2% C 0.042 H 332.1°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#331F30
RGBrgb(51, 31, 48)
HSLhsl(309, 24%, 16%)
HSVhsv(309, 39%, 20%)
CMYKcmyk(0%, 39.2%, 5.9%, 80%)
CIE-LABlab(14.94, 13.10, -7.31)
CIE-LCHlch(14.94, 15.00, 330.86°)
OKLaboklab(27.19% 0.0371 -0.0197)
OKLCHoklch(27.19% 0.042 332.1)
XYZxyz(2.3887, 1.8973, 3.0361)
Luminance0.0190 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F30 #1F3322
analogous
#2C1F33 #331F30 #331F26
triadic
#331F30 #30331F #1F3033
tetradic
#331F30 #332C1F #1F3322 #1F2633
square
#331F30 #332C1F #1F3322 #1F2633
split-complementary
#331F30 #26331F #1F332C
monochromatic
#130C12 #130C12 #331F30 #593654 #7F4D78

Accessibility & contrast

On white

15.22
#331F30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331F30
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F30#FFFFFF#000000##FFFFFF
##331F301.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2431
Deuteranopia (green-blind)
#23272F
Tritanopia (blue-blind)
#352025
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331f30;
/* rgb */ color: rgb(51, 31, 48);
/* oklch */ color: oklch(27.2% 0.042 332.1);
Tailwind
colors: {
  custom: {
    50: '#6b5b68',
    500: '#331f30',
    950: '#000000',
  },
}
SCSS
$custom: #331f30;
$custom-light: #6b5b68;
$custom-dark: #000000;
JSON
{
  "hex": "#331f30",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 48
  },
  "hsl": {
    "h": 309,
    "s": 24.39,
    "l": 16.078
  },
  "oklch": {
    "l": 0.2719,
    "c": 0.04202,
    "h": 332.1
  },
  "luminance": 0.01897
}

Semantic roles & 50–950 ramp

primary
#331F30
secondary
#48664D
accent
#C17467
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060406
muted
#7A797A

Preview Lab

Preview with #331F30

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

Preview Lab → · Contrast checker → · Palette generator →

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