#331D34#331D34

#331D34 is a dark, muted purple. Relative luminance 0.018; OKLCH L 27.0% C 0.051 H 325.4°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#331D34
RGBrgb(51, 29, 52)
HSLhsl(297, 28%, 16%)
HSVhsv(297, 44%, 20%)
CMYKcmyk(1.9%, 44.2%, 0%, 79.6%)
CIE-LABlab(14.57, 15.41, -10.72)
CIE-LCHlch(14.57, 18.77, 325.17°)
OKLaboklab(26.98% 0.0423 -0.0292)
OKLCHoklch(26.98% 0.051 325.4)
XYZxyz(2.4244, 1.8306, 3.4738)
Luminance0.0183 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D34 #1E341D
analogous
#271D34 #331D34 #341D29
triadic
#331D34 #34331D #1D3433
tetradic
#331D34 #34271D #1E341D #1D2934
square
#331D34 #34271D #1E341D #1D2934
split-complementary
#331D34 #29341D #1D3427
monochromatic
#130B14 #130B14 #331D34 #5A335B #804983

Accessibility & contrast

On white

15.37
#331D34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#331D34 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331D34
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D34#FFFFFF#000000##FFFFFF
##331D341.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2335
Deuteranopia (green-blind)
#212633
Tritanopia (blue-blind)
#341F26
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331d34;
/* rgb */ color: rgb(51, 29, 52);
/* oklch */ color: oklch(27.0% 0.051 325.4);
Tailwind
colors: {
  custom: {
    50: '#6b596b',
    500: '#331d34',
    950: '#000000',
  },
}
SCSS
$custom: #331d34;
$custom-light: #6b596b;
$custom-dark: #000000;
JSON
{
  "hex": "#331d34",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 52
  },
  "hsl": {
    "h": 297.391,
    "s": 28.395,
    "l": 15.882
  },
  "oklch": {
    "l": 0.26975,
    "c": 0.05144,
    "h": 325.4
  },
  "luminance": 0.0183
}

Semantic roles & 50–950 ramp

primary
#331D34
secondary
#476845
accent
#C56367
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060306
muted
#7A787A

Preview Lab

Preview with #331D34

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

Preview Lab → · Contrast checker → · Palette generator →

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