#331E35#331E35

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

Color values

HEX#331E35
RGBrgb(51, 30, 53)
HSLhsl(295, 28%, 16%)
HSVhsv(295, 43%, 21%)
CMYKcmyk(3.8%, 43.4%, 0%, 79.2%)
CIE-LABlab(14.90, 14.97, -10.93)
CIE-LCHlch(14.90, 18.54, 323.85°)
OKLaboklab(27.24% 0.0407 -0.0298)
OKLCHoklch(27.24% 0.051 323.8)
XYZxyz(2.4721, 1.8895, 3.6020)
Luminance0.0189 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E35 #20351E
analogous
#281E35 #331E35 #351E2C
triadic
#331E35 #35331E #1E3533
tetradic
#331E35 #35281E #20351E #1E2C35
square
#331E35 #35281E #20351E #1E2C35
split-complementary
#331E35 #2C351E #1E3528
monochromatic
#130B14 #130B14 #331E35 #59345C #7E4A83

Accessibility & contrast

On white

15.24
#331E35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331E35
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E35#FFFFFF#000000##FFFFFF
##331E351.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2436
Deuteranopia (green-blind)
#212634
Tritanopia (blue-blind)
#342027
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331e35;
/* rgb */ color: rgb(51, 30, 53);
/* oklch */ color: oklch(27.2% 0.051 323.8);
Tailwind
colors: {
  custom: {
    50: '#6b5a6c',
    500: '#331e35',
    950: '#000000',
  },
}
SCSS
$custom: #331e35;
$custom-light: #6b5a6c;
$custom-dark: #000000;
JSON
{
  "hex": "#331e35",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 53
  },
  "hsl": {
    "h": 294.783,
    "s": 27.711,
    "l": 16.275
  },
  "oklch": {
    "l": 0.27236,
    "c": 0.0505,
    "h": 323.8
  },
  "luminance": 0.01889
}

Semantic roles & 50–950 ramp

primary
#331E35
secondary
#496846
accent
#C4646C
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#060307
muted
#7A787A

Preview Lab

Preview with #331E35

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

Preview Lab → · Contrast checker → · Palette generator →

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