#331F3A#331F3A

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

Color values

HEX#331F3A
RGBrgb(51, 31, 58)
HSLhsl(284, 30%, 17%)
HSVhsv(284, 47%, 23%)
CMYKcmyk(12.1%, 46.6%, 0%, 77.3%)
CIE-LABlab(15.43, 15.54, -13.64)
CIE-LCHlch(15.43, 20.68, 318.72°)
OKLaboklab(27.72% 0.0403 -0.0376)
OKLCHoklch(27.72% 0.055 317)
XYZxyz(2.6188, 1.9893, 4.2482)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F3A #263A1F
analogous
#251F3A #331F3A #3A1F34
triadic
#331F3A #3A331F #1F3A33
tetradic
#331F3A #3A251F #263A1F #1F343A
square
#331F3A #3A251F #263A1F #1F343A
split-complementary
#331F3A #343A1F #1F3A25
monochromatic
#120B14 #120B14 #331F3A #563462 #794A8A

Accessibility & contrast

On white

15.02
#331F3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331F3A
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F3A#FFFFFF#000000##FFFFFF
##331F3A1.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B253B
Deuteranopia (green-blind)
#202739
Tritanopia (blue-blind)
#332329
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331f3a;
/* rgb */ color: rgb(51, 31, 58);
/* oklch */ color: oklch(27.7% 0.055 317.0);
Tailwind
colors: {
  custom: {
    50: '#6b5b70',
    500: '#331f3a',
    950: '#000000',
  },
}
SCSS
$custom: #331f3a;
$custom-light: #6b5b70;
$custom-dark: #000000;
JSON
{
  "hex": "#331f3a",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 58
  },
  "hsl": {
    "h": 284.444,
    "s": 30.337,
    "l": 17.451
  },
  "oklch": {
    "l": 0.27724,
    "c": 0.05507,
    "h": 317
  },
  "luminance": 0.01989
}

Semantic roles & 50–950 ramp

primary
#331F3A
secondary
#516E47
accent
#C7617C
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060407
muted
#7A797A

Preview Lab

Preview with #331F3A

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

Preview Lab → · Contrast checker → · Palette generator →

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