#331D3D#331D3D

#331D3D is a dark, moderate purple. Relative luminance 0.019; OKLCH L 27.5% C 0.064 H 314.5°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#331D3D
RGBrgb(51, 29, 61)
HSLhsl(281, 36%, 18%)
HSVhsv(281, 52%, 24%)
CMYKcmyk(16.4%, 52.5%, 0%, 76.1%)
CIE-LABlab(15.06, 17.68, -16.33)
CIE-LCHlch(15.06, 24.07, 317.26°)
OKLaboklab(27.5% 0.0445 -0.0453)
OKLCHoklch(27.5% 0.064 314.5)
XYZxyz(2.6468, 1.9195, 4.6451)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D3D #273D1D
analogous
#231D3D #331D3D #3D1D37
triadic
#331D3D #3D331D #1D3D33
tetradic
#331D3D #3D231D #273D1D #1D373D
square
#331D3D #3D231D #273D1D #1D373D
split-complementary
#331D3D #373D1D #1D3D23
monochromatic
#110A15 #110A15 #331D3D #563166 #784490

Accessibility & contrast

On white

15.18
#331D3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331D3D
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D3D#FFFFFF#000000##FFFFFF
##331D3D1.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17253E
Deuteranopia (green-blind)
#1D263C
Tritanopia (blue-blind)
#32222A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331d3d;
/* rgb */ color: rgb(51, 29, 61);
/* oklch */ color: oklch(27.5% 0.064 314.5);
Tailwind
colors: {
  custom: {
    50: '#6b5972',
    500: '#331d3d',
    950: '#000000',
  },
}
SCSS
$custom: #331d3d;
$custom-light: #6b5972;
$custom-dark: #000000;
JSON
{
  "hex": "#331d3d",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 61
  },
  "hsl": {
    "h": 281.25,
    "s": 35.556,
    "l": 17.647
  },
  "oklch": {
    "l": 0.275,
    "c": 0.06353,
    "h": 314.5
  },
  "luminance": 0.01919
}

Semantic roles & 50–950 ramp

primary
#331D3D
secondary
#527244
accent
#CC5C7F
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#070308
muted
#7A787B

Preview Lab

Preview with #331D3D

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

Preview Lab → · Contrast checker → · Palette generator →

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