#331D3C#331D3C

#331D3C is a dark, moderate purple. Relative luminance 0.019; OKLCH L 27.4% C 0.062 H 315.5°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#331D3C
RGBrgb(51, 29, 60)
HSLhsl(283, 35%, 17%)
HSVhsv(283, 52%, 24%)
CMYKcmyk(15%, 51.7%, 0%, 76.5%)
CIE-LABlab(15.00, 17.41, -15.72)
CIE-LCHlch(15.00, 23.46, 317.93°)
OKLaboklab(27.44% 0.0443 -0.0435)
OKLCHoklch(27.44% 0.062 315.5)
XYZxyz(2.6201, 1.9089, 4.5045)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D3C #263C1D
analogous
#241D3C #331D3C #3C1D35
triadic
#331D3C #3C331D #1D3C33
tetradic
#331D3C #3C241D #263C1D #1D353C
square
#331D3C #3C241D #263C1D #1D353C
split-complementary
#331D3C #353C1D #1D3C24
monochromatic
#120A15 #120A15 #331D3C #563165 #79458F

Accessibility & contrast

On white

15.20
#331D3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331D3C
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D3C#FFFFFF#000000##FFFFFF
##331D3C1.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17243D
Deuteranopia (green-blind)
#1D263B
Tritanopia (blue-blind)
#332129
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331d3c;
/* rgb */ color: rgb(51, 29, 60);
/* oklch */ color: oklch(27.4% 0.062 315.5);
Tailwind
colors: {
  custom: {
    50: '#6b5972',
    500: '#331d3c',
    950: '#000000',
  },
}
SCSS
$custom: #331d3c;
$custom-light: #6b5972;
$custom-dark: #000000;
JSON
{
  "hex": "#331d3c",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 60
  },
  "hsl": {
    "h": 282.581,
    "s": 34.831,
    "l": 17.451
  },
  "oklch": {
    "l": 0.27439,
    "c": 0.06214,
    "h": 315.5
  },
  "luminance": 0.01909
}

Semantic roles & 50–950 ramp

primary
#331D3C
secondary
#517044
accent
#CB5D7D
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#070308
muted
#7A787B

Preview Lab

Preview with #331D3C

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

Preview Lab → · Contrast checker → · Palette generator →

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