#331F3D#331F3D

#331F3D is a dark, muted purple. Relative luminance 0.020; OKLCH L 27.9% C 0.059 H 313.7°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#331F3D
RGBrgb(51, 31, 61)
HSLhsl(280, 33%, 18%)
HSVhsv(280, 49%, 24%)
CMYKcmyk(16.4%, 49.2%, 0%, 76.1%)
CIE-LABlab(15.60, 16.32, -15.49)
CIE-LCHlch(15.60, 22.50, 316.50°)
OKLaboklab(27.9% 0.041 -0.0429)
OKLCHoklch(27.9% 0.059 313.7)
XYZxyz(2.6974, 2.0208, 4.6619)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F3D #293D1F
analogous
#241F3D #331F3D #3D1F38
triadic
#331F3D #3D331F #1F3D33
tetradic
#331F3D #3D241F #293D1F #1F383D
square
#331F3D #3D241F #293D1F #1F383D
split-complementary
#331F3D #383D1F #1F3D24
monochromatic
#110A14 #110A14 #331F3D #553466 #77488E

Accessibility & contrast

On white

14.96
#331F3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#331F3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331F3D
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F3D#FFFFFF#000000##FFFFFF
##331F3D1.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19263E
Deuteranopia (green-blind)
#1E273C
Tritanopia (blue-blind)
#32232B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331f3d;
/* rgb */ color: rgb(51, 31, 61);
/* oklch */ color: oklch(27.9% 0.059 313.7);
Tailwind
colors: {
  custom: {
    50: '#6b5b72',
    500: '#331f3d',
    950: '#000000',
  },
}
SCSS
$custom: #331f3d;
$custom-light: #6b5b72;
$custom-dark: #000000;
JSON
{
  "hex": "#331f3d",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 61
  },
  "hsl": {
    "h": 280,
    "s": 32.609,
    "l": 18.039
  },
  "oklch": {
    "l": 0.27902,
    "c": 0.05933,
    "h": 313.7
  },
  "luminance": 0.02021
}

Semantic roles & 50–950 ramp

primary
#331F3D
secondary
#557147
accent
#C95F82
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#070408
muted
#7A797B

Preview Lab

Preview with #331F3D

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

Preview Lab → · Contrast checker → · Palette generator →

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