#331A36#331A36

#331A36 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 26.5% C 0.061 H 323.1°. Best body text is #FFFFFF at 15.65:1 contrast (WCAG AA passes).

Color values

HEX#331A36
RGBrgb(51, 26, 54)
HSLhsl(294, 35%, 16%)
HSVhsv(294, 52%, 21%)
CMYKcmyk(5.6%, 51.9%, 0%, 78.8%)
CIE-LABlab(13.88, 17.91, -13.22)
CIE-LCHlch(13.88, 22.26, 323.56°)
OKLaboklab(26.49% 0.0484 -0.0363)
OKLCHoklch(26.49% 0.061 323.1)
XYZxyz(2.4004, 1.7090, 3.6927)
Luminance0.0171 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A36 #1D361A
analogous
#251A36 #331A36 #361A2B
triadic
#331A36 #36331A #1A3633
tetradic
#331A36 #36251A #1D361A #1A2B36
square
#331A36 #36251A #1D361A #1A2B36
split-complementary
#331A36 #2B361A #1A3625
monochromatic
#140A15 #140A15 #331A36 #5A2E5F #814289

Accessibility & contrast

On white

15.65
#331A36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331A36
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A36#FFFFFF#000000##FFFFFF
##331A361.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331a36;
/* rgb */ color: rgb(51, 26, 54);
/* oklch */ color: oklch(26.5% 0.061 323.1);
Tailwind
colors: {
  custom: {
    50: '#6b576d',
    500: '#331a36',
    950: '#000000',
  },
}
SCSS
$custom: #331a36;
$custom-light: #6b576d;
$custom-dark: #000000;
JSON
{
  "hex": "#331a36",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 54
  },
  "hsl": {
    "h": 293.571,
    "s": 35,
    "l": 15.686
  },
  "oklch": {
    "l": 0.26491,
    "c": 0.06054,
    "h": 323.1
  },
  "luminance": 0.01709
}

Semantic roles & 50–950 ramp

primary
#331A36
secondary
#456B41
accent
#CB5D69
background
#F6F5F6
surface
#EBE9EB
border
#C6C5C6
text
#070307
muted
#7A787A

Preview Lab

Preview with #331A36

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

Preview Lab → · Contrast checker → · Palette generator →

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