#321138#321138

#321138 is a very dark, moderate purple. Relative luminance 0.014; OKLCH L 24.9% C 0.080 H 321.2°. Best body text is #FFFFFF at 16.50:1 contrast (WCAG AA passes).

Color values

HEX#321138
RGBrgb(50, 17, 56)
HSLhsl(291, 53%, 14%)
HSVhsv(291, 70%, 22%)
CMYKcmyk(10.7%, 69.6%, 0%, 78%)
CIE-LABlab(11.72, 23.65, -18.06)
CIE-LCHlch(11.72, 29.75, 322.63°)
OKLaboklab(24.9% 0.0626 -0.0502)
OKLCHoklch(24.9% 0.08 321.2)
XYZxyz(2.2296, 1.3646, 3.8866)
Luminance0.0137 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321138 #173811
analogous
#1F1138 #321138 #38112B
triadic
#321138 #383211 #113832
tetradic
#321138 #381F11 #173811 #112B38
square
#321138 #381F11 #173811 #112B38
split-complementary
#321138 #2B3811 #11381F
monochromatic
#150717 #150717 #321138 #5C1F67 #862E96

Accessibility & contrast

On white

16.50
#321138 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#321138 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321138
16.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321138#FFFFFF#000000##FFFFFF
##3211381.0016.501.2716.50
#FFFFFF16.501.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091D39
Deuteranopia (green-blind)
#152037
Tritanopia (blue-blind)
#331722
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #321138;
/* rgb */ color: rgb(50, 17, 56);
/* oklch */ color: oklch(24.9% 0.080 321.2);
Tailwind
colors: {
  custom: {
    50: '#6b516f',
    500: '#321138',
    950: '#000000',
  },
}
SCSS
$custom: #321138;
$custom-light: #6b516f;
$custom-dark: #000000;
JSON
{
  "hex": "#321138",
  "rgb": {
    "r": 50,
    "g": 17,
    "b": 56
  },
  "hsl": {
    "h": 290.769,
    "s": 53.425,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24904,
    "c": 0.08024,
    "h": 321.2
  },
  "luminance": 0.01365
}

Semantic roles & 50–950 ramp

primary
#321138
secondary
#3D7134
accent
#DD4B61
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #321138

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

Preview Lab → · Contrast checker → · Palette generator →

#321138 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva