#331C3D#331C3D

#331C3D is a dark, moderate purple. Relative luminance 0.019; OKLCH L 27.3% C 0.066 H 314.9°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#331C3D
RGBrgb(51, 28, 61)
HSLhsl(282, 37%, 17%)
HSVhsv(282, 54%, 24%)
CMYKcmyk(16.4%, 54.1%, 0%, 76.1%)
CIE-LABlab(14.80, 18.35, -16.75)
CIE-LCHlch(14.80, 24.84, 317.61°)
OKLaboklab(27.31% 0.0463 -0.0465)
OKLCHoklch(27.31% 0.066 314.9)
XYZxyz(2.6227, 1.8713, 4.6370)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C3D #263D1C
analogous
#221C3D #331C3D #3D1C37
triadic
#331C3D #3D331C #1C3D33
tetradic
#331C3D #3D221C #263D1C #1C373D
square
#331C3D #3D221C #263D1C #1C373D
split-complementary
#331C3D #373D1C #1C3D22
monochromatic
#120A15 #120A15 #331C3D #562F67 #794391

Accessibility & contrast

On white

15.28
#331C3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331C3D
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C3D#FFFFFF#000000##FFFFFF
##331C3D1.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15243E
Deuteranopia (green-blind)
#1C263C
Tritanopia (blue-blind)
#322129
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331c3d;
/* rgb */ color: rgb(51, 28, 61);
/* oklch */ color: oklch(27.3% 0.066 314.9);
Tailwind
colors: {
  custom: {
    50: '#6b5972',
    500: '#331c3d',
    950: '#000000',
  },
}
SCSS
$custom: #331c3d;
$custom-light: #6b5972;
$custom-dark: #000000;
JSON
{
  "hex": "#331c3d",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 61
  },
  "hsl": {
    "h": 281.818,
    "s": 37.079,
    "l": 17.451
  },
  "oklch": {
    "l": 0.27305,
    "c": 0.06561,
    "h": 314.9
  },
  "luminance": 0.01871
}

Semantic roles & 50–950 ramp

primary
#331C3D
secondary
#517243
accent
#CD5B7D
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#070308
muted
#7A787B

Preview Lab

Preview with #331C3D

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

Preview Lab → · Contrast checker → · Palette generator →

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