#321A38#321A38

#321A38 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 26.5% C 0.062 H 319.4°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#321A38
RGBrgb(50, 26, 56)
HSLhsl(288, 37%, 16%)
HSVhsv(288, 54%, 22%)
CMYKcmyk(10.7%, 53.6%, 0%, 78%)
CIE-LABlab(13.84, 18.03, -14.72)
CIE-LCHlch(13.84, 23.27, 320.78°)
OKLaboklab(26.47% 0.0474 -0.0406)
OKLCHoklch(26.47% 0.062 319.4)
XYZxyz(2.3985, 1.7025, 3.9429)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A38 #20381A
analogous
#231A38 #321A38 #381A2F
triadic
#321A38 #38321A #1A3832
tetradic
#321A38 #38231A #20381A #1A2F38
square
#321A38 #38231A #20381A #1A2F38
split-complementary
#321A38 #2F381A #1A3823
monochromatic
#130A15 #130A15 #321A38 #572D62 #7D418C

Accessibility & contrast

On white

15.67
#321A38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#321A38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A38
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A38#FFFFFF#000000##FFFFFF
##321A381.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152239
Deuteranopia (green-blind)
#1C2437
Tritanopia (blue-blind)
#321E26
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #321a38;
/* rgb */ color: rgb(50, 26, 56);
/* oklch */ color: oklch(26.5% 0.062 319.4);
Tailwind
colors: {
  custom: {
    50: '#6b576e',
    500: '#321a38',
    950: '#000000',
  },
}
SCSS
$custom: #321a38;
$custom-light: #6b576e;
$custom-dark: #000000;
JSON
{
  "hex": "#321a38",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 56
  },
  "hsl": {
    "h": 288,
    "s": 36.585,
    "l": 16.078
  },
  "oklch": {
    "l": 0.26466,
    "c": 0.06244,
    "h": 319.4
  },
  "luminance": 0.01702
}

Semantic roles & 50–950 ramp

primary
#321A38
secondary
#4A6D41
accent
#CD5B72
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060307
muted
#7A787A

Preview Lab

Preview with #321A38

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

Preview Lab → · Contrast checker → · Palette generator →

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