#331E3D#331E3D

#331E3D is a dark, moderate purple. Relative luminance 0.020; OKLCH L 27.7% C 0.061 H 314.1°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#331E3D
RGBrgb(51, 30, 61)
HSLhsl(281, 34%, 18%)
HSVhsv(281, 51%, 24%)
CMYKcmyk(16.4%, 50.8%, 0%, 76.1%)
CIE-LABlab(15.33, 17.00, -15.92)
CIE-LCHlch(15.33, 23.29, 316.89°)
OKLaboklab(27.7% 0.0428 -0.0441)
OKLCHoklch(27.7% 0.061 314.1)
XYZxyz(2.6717, 1.9693, 4.6534)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E3D #283D1E
analogous
#231E3D #331E3D #3D1E37
triadic
#331E3D #3D331E #1E3D33
tetradic
#331E3D #3D231E #283D1E #1E373D
square
#331E3D #3D231E #283D1E #1E373D
split-complementary
#331E3D #373D1E #1E3D23
monochromatic
#110A15 #110A15 #331E3D #553266 #78468F

Accessibility & contrast

On white

15.07
#331E3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331E3D
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E3D#FFFFFF#000000##FFFFFF
##331E3D1.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331e3d;
/* rgb */ color: rgb(51, 30, 61);
/* oklch */ color: oklch(27.7% 0.061 314.1);
Tailwind
colors: {
  custom: {
    50: '#6b5a72',
    500: '#331e3d',
    950: '#000000',
  },
}
SCSS
$custom: #331e3d;
$custom-light: #6b5a72;
$custom-dark: #000000;
JSON
{
  "hex": "#331e3d",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 61
  },
  "hsl": {
    "h": 280.645,
    "s": 34.066,
    "l": 17.843
  },
  "oklch": {
    "l": 0.277,
    "c": 0.06143,
    "h": 314.1
  },
  "luminance": 0.01969
}

Semantic roles & 50–950 ramp

primary
#331E3D
secondary
#547146
accent
#CA5E81
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#070408
muted
#7A797B

Preview Lab

Preview with #331E3D

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

Preview Lab → · Contrast checker → · Palette generator →

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