#331536#331536

#331536 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.6% C 0.071 H 323.9°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#331536
RGBrgb(51, 21, 54)
HSLhsl(295, 44%, 15%)
HSVhsv(295, 61%, 21%)
CMYKcmyk(5.6%, 61.1%, 0%, 78.8%)
CIE-LABlab(12.65, 21.11, -15.14)
CIE-LCHlch(12.65, 25.98, 324.35°)
OKLaboklab(25.58% 0.0573 -0.0418)
OKLCHoklch(25.58% 0.071 323.9)
XYZxyz(2.2992, 1.5066, 3.6590)
Luminance0.0151 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331536 #183615
analogous
#231536 #331536 #361529
triadic
#331536 #363315 #153633
tetradic
#331536 #362315 #183615 #152936
square
#331536 #362315 #183615 #152936
split-complementary
#331536 #293615 #153623
monochromatic
#150916 #150916 #331536 #5D2662 #86378E

Accessibility & contrast

On white

16.14
#331536 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#331536 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331536
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331536#FFFFFF#000000##FFFFFF
##3315361.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101F37
Deuteranopia (green-blind)
#1A2235
Tritanopia (blue-blind)
#341923
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #331536;
/* rgb */ color: rgb(51, 21, 54);
/* oklch */ color: oklch(25.6% 0.071 323.9);
Tailwind
colors: {
  custom: {
    50: '#6c546d',
    500: '#331536',
    950: '#000000',
  },
}
SCSS
$custom: #331536;
$custom-light: #6c546d;
$custom-dark: #000000;
JSON
{
  "hex": "#331536",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 54
  },
  "hsl": {
    "h": 294.545,
    "s": 44,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25579,
    "c": 0.0709,
    "h": 323.9
  },
  "luminance": 0.01506
}

Semantic roles & 50–950 ramp

primary
#331536
secondary
#3E6D3A
accent
#D45460
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070207
muted
#7A787A

Preview Lab

Preview with #331536

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

Preview Lab → · Contrast checker → · Palette generator →

#331536 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva