#331F3C#331F3C

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

Color values

HEX#331F3C
RGBrgb(51, 31, 60)
HSLhsl(281, 32%, 18%)
HSVhsv(281, 48%, 24%)
CMYKcmyk(15%, 48.3%, 0%, 76.5%)
CIE-LABlab(15.54, 16.06, -14.88)
CIE-LCHlch(15.54, 21.89, 317.19°)
OKLaboklab(27.84% 0.0408 -0.0411)
OKLCHoklch(27.84% 0.058 314.7)
XYZxyz(2.6707, 2.0101, 4.5214)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F3C #283C1F
analogous
#241F3C #331F3C #3C1F36
triadic
#331F3C #3C331F #1F3C33
tetradic
#331F3C #3C241F #283C1F #1F363C
square
#331F3C #3C241F #283C1F #1F363C
split-complementary
#331F3C #363C1F #1F3C24
monochromatic
#110A14 #110A14 #331F3C #553464 #78498D

Accessibility & contrast

On white

14.98
#331F3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331F3C
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F3C#FFFFFF#000000##FFFFFF
##331F3C1.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A263D
Deuteranopia (green-blind)
#1F273B
Tritanopia (blue-blind)
#32232A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331f3c;
/* rgb */ color: rgb(51, 31, 60);
/* oklch */ color: oklch(27.8% 0.058 314.7);
Tailwind
colors: {
  custom: {
    50: '#6b5b72',
    500: '#331f3c',
    950: '#000000',
  },
}
SCSS
$custom: #331f3c;
$custom-light: #6b5b72;
$custom-dark: #000000;
JSON
{
  "hex": "#331f3c",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 60
  },
  "hsl": {
    "h": 281.379,
    "s": 31.868,
    "l": 17.843
  },
  "oklch": {
    "l": 0.27842,
    "c": 0.0579,
    "h": 314.7
  },
  "luminance": 0.0201
}

Semantic roles & 50–950 ramp

primary
#331F3C
secondary
#547047
accent
#C86080
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#070407
muted
#7A797A

Preview Lab

Preview with #331F3C

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

Preview Lab → · Contrast checker → · Palette generator →

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