#331F39#331F39

#331F39 is a dark, muted purple. Relative luminance 0.020; OKLCH L 27.7% C 0.054 H 318.2°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#331F39
RGBrgb(51, 31, 57)
HSLhsl(286, 30%, 17%)
HSVhsv(286, 46%, 22%)
CMYKcmyk(10.5%, 45.6%, 0%, 77.6%)
CIE-LABlab(15.38, 15.28, -13.02)
CIE-LCHlch(15.38, 20.07, 319.57°)
OKLaboklab(27.67% 0.04 -0.0358)
OKLCHoklch(27.67% 0.054 318.2)
XYZxyz(2.5936, 1.9793, 4.1155)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F39 #25391F
analogous
#261F39 #331F39 #391F32
triadic
#331F39 #39331F #1F3933
tetradic
#331F39 #39261F #25391F #1F3239
square
#331F39 #39261F #25391F #1F3239
split-complementary
#331F39 #32391F #1F3926
monochromatic
#120B14 #120B14 #331F39 #563561 #7A4A88

Accessibility & contrast

On white

15.05
#331F39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#331F39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331F39
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F39#FFFFFF#000000##FFFFFF
##331F391.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B253A
Deuteranopia (green-blind)
#202738
Tritanopia (blue-blind)
#332229
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331f39;
/* rgb */ color: rgb(51, 31, 57);
/* oklch */ color: oklch(27.7% 0.054 318.2);
Tailwind
colors: {
  custom: {
    50: '#6b5b6f',
    500: '#331f39',
    950: '#000000',
  },
}
SCSS
$custom: #331f39;
$custom-light: #6b5b6f;
$custom-dark: #000000;
JSON
{
  "hex": "#331f39",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 57
  },
  "hsl": {
    "h": 286.154,
    "s": 29.545,
    "l": 17.255
  },
  "oklch": {
    "l": 0.27667,
    "c": 0.05367,
    "h": 318.2
  },
  "luminance": 0.01979
}

Semantic roles & 50–950 ramp

primary
#331F39
secondary
#506C47
accent
#C66279
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060407
muted
#7A797A

Preview Lab

Preview with #331F39

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

Preview Lab → · Contrast checker → · Palette generator →

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