#331F3B#331F3B

#331F3B is a dark, muted purple. Relative luminance 0.020; OKLCH L 27.8% C 0.056 H 315.8°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#331F3B
RGBrgb(51, 31, 59)
HSLhsl(283, 31%, 18%)
HSVhsv(283, 47%, 23%)
CMYKcmyk(13.6%, 47.5%, 0%, 76.9%)
CIE-LABlab(15.49, 15.80, -14.26)
CIE-LCHlch(15.49, 21.28, 317.92°)
OKLaboklab(27.78% 0.0405 -0.0394)
OKLCHoklch(27.78% 0.056 315.8)
XYZxyz(2.6445, 1.9996, 4.3835)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F3B #273B1F
analogous
#251F3B #331F3B #3B1F35
triadic
#331F3B #3B331F #1F3B33
tetradic
#331F3B #3B251F #273B1F #1F353B
square
#331F3B #3B251F #273B1F #1F353B
split-complementary
#331F3B #353B1F #1F3B25
monochromatic
#110B14 #110B14 #331F3B #563463 #78498B

Accessibility & contrast

On white

15.00
#331F3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331F3B
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F3B#FFFFFF#000000##FFFFFF
##331F3B1.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A253C
Deuteranopia (green-blind)
#1F273A
Tritanopia (blue-blind)
#33232A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331f3b;
/* rgb */ color: rgb(51, 31, 59);
/* oklch */ color: oklch(27.8% 0.056 315.8);
Tailwind
colors: {
  custom: {
    50: '#6b5b71',
    500: '#331f3b',
    950: '#000000',
  },
}
SCSS
$custom: #331f3b;
$custom-light: #6b5b71;
$custom-dark: #000000;
JSON
{
  "hex": "#331f3b",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 59
  },
  "hsl": {
    "h": 282.857,
    "s": 31.111,
    "l": 17.647
  },
  "oklch": {
    "l": 0.27783,
    "c": 0.05648,
    "h": 315.8
  },
  "luminance": 0.02
}

Semantic roles & 50–950 ramp

primary
#331F3B
secondary
#526F47
accent
#C7607E
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#070407
muted
#7A797A

Preview Lab

Preview with #331F3B

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

Preview Lab → · Contrast checker → · Palette generator →

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