#331A35#331A35

#331A35 is a dark, muted purple. Relative luminance 0.017; OKLCH L 26.4% C 0.059 H 324.4°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#331A35
RGBrgb(51, 26, 53)
HSLhsl(296, 34%, 15%)
HSVhsv(296, 51%, 21%)
CMYKcmyk(3.8%, 50.9%, 0%, 79.2%)
CIE-LABlab(13.83, 17.67, -12.59)
CIE-LCHlch(13.83, 21.69, 324.52°)
OKLaboklab(26.43% 0.0482 -0.0345)
OKLCHoklch(26.43% 0.059 324.4)
XYZxyz(2.3772, 1.6997, 3.5703)
Luminance0.0170 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A35 #1C351A
analogous
#251A35 #331A35 #351A29
triadic
#331A35 #35331A #1A3533
tetradic
#331A35 #35251A #1C351A #1A2935
square
#331A35 #35251A #1C351A #1A2935
split-complementary
#331A35 #29351A #1A3525
monochromatic
#140A15 #140A15 #331A35 #5B2E5E #824287

Accessibility & contrast

On white

15.67
#331A35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#331A35 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A35
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A35#FFFFFF#000000##FFFFFF
##331A351.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172136
Deuteranopia (green-blind)
#1E2434
Tritanopia (blue-blind)
#341D25
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #331a35;
/* rgb */ color: rgb(51, 26, 53);
/* oklch */ color: oklch(26.4% 0.059 324.4);
Tailwind
colors: {
  custom: {
    50: '#6b576c',
    500: '#331a35',
    950: '#000000',
  },
}
SCSS
$custom: #331a35;
$custom-light: #6b576c;
$custom-dark: #000000;
JSON
{
  "hex": "#331a35",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 53
  },
  "hsl": {
    "h": 295.556,
    "s": 34.177,
    "l": 15.49
  },
  "oklch": {
    "l": 0.26432,
    "c": 0.05928,
    "h": 324.4
  },
  "luminance": 0.017
}

Semantic roles & 50–950 ramp

primary
#331A35
secondary
#446A41
accent
#CA5E66
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#070307
muted
#7A787A

Preview Lab

Preview with #331A35

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

Preview Lab → · Contrast checker → · Palette generator →

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