#331C3A#331C3A

#331C3A is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.1% C 0.062 H 318.0°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#331C3A
RGBrgb(51, 28, 58)
HSLhsl(286, 35%, 17%)
HSVhsv(286, 52%, 23%)
CMYKcmyk(12.1%, 51.7%, 0%, 77.3%)
CIE-LABlab(14.62, 17.57, -14.90)
CIE-LCHlch(14.62, 23.04, 319.70°)
OKLaboklab(27.12% 0.0457 -0.0412)
OKLCHoklch(27.12% 0.062 318)
XYZxyz(2.5441, 1.8399, 4.2233)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C3A #233A1C
analogous
#241C3A #331C3A #3A1C32
triadic
#331C3A #3A331C #1C3A33
tetradic
#331C3A #3A241C #233A1C #1C323A
square
#331C3A #3A241C #233A1C #1C323A
split-complementary
#331C3A #323A1C #1C3A24
monochromatic
#120A15 #120A15 #331C3A #573063 #7C448D

Accessibility & contrast

On white

15.35
#331C3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#331C3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C3A
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C3A#FFFFFF#000000##FFFFFF
##331C3A1.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17233B
Deuteranopia (green-blind)
#1D2639
Tritanopia (blue-blind)
#332028
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331c3a;
/* rgb */ color: rgb(51, 28, 58);
/* oklch */ color: oklch(27.1% 0.062 318.0);
Tailwind
colors: {
  custom: {
    50: '#6b5970',
    500: '#331c3a',
    950: '#000000',
  },
}
SCSS
$custom: #331c3a;
$custom-light: #6b5970;
$custom-dark: #000000;
JSON
{
  "hex": "#331c3a",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 58
  },
  "hsl": {
    "h": 286,
    "s": 34.884,
    "l": 16.863
  },
  "oklch": {
    "l": 0.27119,
    "c": 0.06152,
    "h": 318
  },
  "luminance": 0.0184
}

Semantic roles & 50–950 ramp

primary
#331C3A
secondary
#4D6F43
accent
#CB5D77
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#070307
muted
#7A787A

Preview Lab

Preview with #331C3A

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

Preview Lab → · Contrast checker → · Palette generator →

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