#331D3E#331D3E

#331D3E is a dark, moderate purple. Relative luminance 0.019; OKLCH L 27.6% C 0.065 H 313.5°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#331D3E
RGBrgb(51, 29, 62)
HSLhsl(280, 36%, 18%)
HSVhsv(280, 53%, 24%)
CMYKcmyk(17.7%, 53.2%, 0%, 75.7%)
CIE-LABlab(15.12, 17.94, -16.94)
CIE-LCHlch(15.12, 24.68, 316.64°)
OKLaboklab(27.56% 0.0447 -0.0471)
OKLCHoklch(27.56% 0.065 313.5)
XYZxyz(2.6740, 1.9304, 4.7882)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D3E #283E1D
analogous
#221D3E #331D3E #3E1D38
triadic
#331D3E #3E331D #1D3E33
tetradic
#331D3E #3E221D #283E1D #1D383E
square
#331D3E #3E221D #283E1D #1D383E
split-complementary
#331D3E #383E1D #1D3E22
monochromatic
#110A15 #110A15 #331D3E #553168 #784491

Accessibility & contrast

On white

15.15
#331D3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#331D3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331D3E
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D3E#FFFFFF#000000##FFFFFF
##331D3E1.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16253F
Deuteranopia (green-blind)
#1C263D
Tritanopia (blue-blind)
#32222A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331d3e;
/* rgb */ color: rgb(51, 29, 62);
/* oklch */ color: oklch(27.6% 0.065 313.5);
Tailwind
colors: {
  custom: {
    50: '#6b5973',
    500: '#331d3e',
    950: '#000000',
  },
}
SCSS
$custom: #331d3e;
$custom-light: #6b5973;
$custom-dark: #000000;
JSON
{
  "hex": "#331d3e",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 62
  },
  "hsl": {
    "h": 280,
    "s": 36.264,
    "l": 17.843
  },
  "oklch": {
    "l": 0.27563,
    "c": 0.06493,
    "h": 313.5
  },
  "luminance": 0.0193
}

Semantic roles & 50–950 ramp

primary
#331D3E
secondary
#547344
accent
#CC5C81
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #331D3E

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

Preview Lab → · Contrast checker → · Palette generator →

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