#321C38#321C38

#321C38 is a dark, muted purple. Relative luminance 0.018; OKLCH L 26.9% C 0.058 H 318.8°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#321C38
RGBrgb(50, 28, 56)
HSLhsl(287, 33%, 16%)
HSVhsv(287, 50%, 22%)
CMYKcmyk(10.7%, 50%, 0%, 78%)
CIE-LABlab(14.37, 16.69, -13.90)
CIE-LCHlch(14.37, 21.72, 320.22°)
OKLaboklab(26.86% 0.0438 -0.0383)
OKLCHoklch(26.86% 0.058 318.8)
XYZxyz(2.4444, 1.7942, 3.9582)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C38 #22381C
analogous
#241C38 #321C38 #381C30
triadic
#321C38 #38321C #1C3832
tetradic
#321C38 #38241C #22381C #1C3038
square
#321C38 #38241C #22381C #1C3038
split-complementary
#321C38 #30381C #1C3824
monochromatic
#120A14 #120A14 #321C38 #563061 #7B458A

Accessibility & contrast

On white

15.45
#321C38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#321C38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C38
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C38#FFFFFF#000000##FFFFFF
##321C381.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182339
Deuteranopia (green-blind)
#1E2537
Tritanopia (blue-blind)
#322027
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #321c38;
/* rgb */ color: rgb(50, 28, 56);
/* oklch */ color: oklch(26.9% 0.058 318.8);
Tailwind
colors: {
  custom: {
    50: '#6a586e',
    500: '#321c38',
    950: '#000000',
  },
}
SCSS
$custom: #321c38;
$custom-light: #6a586e;
$custom-dark: #000000;
JSON
{
  "hex": "#321c38",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 56
  },
  "hsl": {
    "h": 287.143,
    "s": 33.333,
    "l": 16.471
  },
  "oklch": {
    "l": 0.2686,
    "c": 0.05816,
    "h": 318.8
  },
  "luminance": 0.01794
}

Semantic roles & 50–950 ramp

primary
#321C38
secondary
#4C6C43
accent
#C95E75
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060307
muted
#7A787A

Preview Lab

Preview with #321C38

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

Preview Lab → · Contrast checker → · Palette generator →

#321C38 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva