#331A37#331A37

#331A37 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 26.6% C 0.062 H 321.9°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#331A37
RGBrgb(51, 26, 55)
HSLhsl(292, 36%, 16%)
HSVhsv(292, 53%, 22%)
CMYKcmyk(7.3%, 52.7%, 0%, 78.4%)
CIE-LABlab(13.93, 18.15, -13.85)
CIE-LCHlch(13.93, 22.83, 322.65°)
OKLaboklab(26.55% 0.0487 -0.0381)
OKLCHoklch(26.55% 0.062 321.9)
XYZxyz(2.4241, 1.7185, 3.8177)
Luminance0.0172 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A37 #1E371A
analogous
#241A37 #331A37 #371A2C
triadic
#331A37 #37331A #1A3733
tetradic
#331A37 #37241A #1E371A #1A2C37
square
#331A37 #37241A #1E371A #1A2C37
split-complementary
#331A37 #2C371A #1A3724
monochromatic
#130A15 #130A15 #331A37 #5A2E61 #80418A

Accessibility & contrast

On white

15.63
#331A37 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331A37
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A37#FFFFFF#000000##FFFFFF
##331A371.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162238
Deuteranopia (green-blind)
#1D2436
Tritanopia (blue-blind)
#341E25
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #331a37;
/* rgb */ color: rgb(51, 26, 55);
/* oklch */ color: oklch(26.6% 0.062 321.9);
Tailwind
colors: {
  custom: {
    50: '#6b576e',
    500: '#331a37',
    950: '#000000',
  },
}
SCSS
$custom: #331a37;
$custom-light: #6b576e;
$custom-dark: #000000;
JSON
{
  "hex": "#331a37",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 55
  },
  "hsl": {
    "h": 291.724,
    "s": 35.802,
    "l": 15.882
  },
  "oklch": {
    "l": 0.2655,
    "c": 0.06181,
    "h": 321.9
  },
  "luminance": 0.01718
}

Semantic roles & 50–950 ramp

primary
#331A37
secondary
#476C41
accent
#CC5C6B
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#070307
muted
#7A787A

Preview Lab

Preview with #331A37

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

Preview Lab → · Contrast checker → · Palette generator →

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