#331C36#331C36

#331C36 is a dark, muted purple. Relative luminance 0.018; OKLCH L 26.9% C 0.056 H 322.8°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#331C36
RGBrgb(51, 28, 54)
HSLhsl(293, 32%, 16%)
HSVhsv(293, 48%, 21%)
CMYKcmyk(5.6%, 48.1%, 0%, 78.8%)
CIE-LABlab(14.41, 16.57, -12.40)
CIE-LCHlch(14.41, 20.70, 323.18°)
OKLaboklab(26.88% 0.0448 -0.034)
OKLCHoklch(26.88% 0.056 322.8)
XYZxyz(2.4463, 1.8008, 3.7080)
Luminance0.0180 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C36 #1F361C
analogous
#261C36 #331C36 #361C2C
triadic
#331C36 #36331C #1C3633
tetradic
#331C36 #36261C #1F361C #1C2C36
square
#331C36 #36261C #1F361C #1C2C36
split-complementary
#331C36 #2C361C #1C3626
monochromatic
#130A14 #130A14 #331C36 #59315E #7F4687

Accessibility & contrast

On white

15.44
#331C36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#331C36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C36
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C36#FFFFFF#000000##FFFFFF
##331C361.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192337
Deuteranopia (green-blind)
#1F2535
Tritanopia (blue-blind)
#341F26
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331c36;
/* rgb */ color: rgb(51, 28, 54);
/* oklch */ color: oklch(26.9% 0.056 322.8);
Tailwind
colors: {
  custom: {
    50: '#6b596d',
    500: '#331c36',
    950: '#000000',
  },
}
SCSS
$custom: #331c36;
$custom-light: #6b596d;
$custom-dark: #000000;
JSON
{
  "hex": "#331c36",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 54
  },
  "hsl": {
    "h": 293.077,
    "s": 31.707,
    "l": 16.078
  },
  "oklch": {
    "l": 0.26884,
    "c": 0.05622,
    "h": 322.8
  },
  "luminance": 0.01801
}

Semantic roles & 50–950 ramp

primary
#331C36
secondary
#486A44
accent
#C8606C
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#070307
muted
#7A787A

Preview Lab

Preview with #331C36

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

Preview Lab → · Contrast checker → · Palette generator →

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