#321838#321838

#321838 is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.1% C 0.067 H 319.9°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#321838
RGBrgb(50, 24, 56)
HSLhsl(289, 40%, 16%)
HSVhsv(289, 57%, 22%)
CMYKcmyk(10.7%, 57.1%, 0%, 78%)
CIE-LABlab(13.33, 19.34, -15.51)
CIE-LCHlch(13.33, 24.80, 321.27°)
OKLaboklab(26.09% 0.0509 -0.0429)
OKLCHoklch(26.09% 0.067 319.9)
XYZxyz(2.3557, 1.6170, 3.9286)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321838 #1E3818
analogous
#221838 #321838 #38182E
triadic
#321838 #383218 #183832
tetradic
#321838 #382218 #1E3818 #182E38
square
#321838 #382218 #1E3818 #182E38
split-complementary
#321838 #2E3818 #183822
monochromatic
#130915 #130915 #321838 #582A63 #7E3D8E

Accessibility & contrast

On white

15.87
#321838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#321838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321838
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321838#FFFFFF#000000##FFFFFF
##3218381.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132039
Deuteranopia (green-blind)
#1A2337
Tritanopia (blue-blind)
#321C25
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #321838;
/* rgb */ color: rgb(50, 24, 56);
/* oklch */ color: oklch(26.1% 0.067 319.9);
Tailwind
colors: {
  custom: {
    50: '#6b566e',
    500: '#321838',
    950: '#000000',
  },
}
SCSS
$custom: #321838;
$custom-light: #6b566e;
$custom-dark: #000000;
JSON
{
  "hex": "#321838",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 56
  },
  "hsl": {
    "h": 288.75,
    "s": 40,
    "l": 15.686
  },
  "oklch": {
    "l": 0.26089,
    "c": 0.06662,
    "h": 319.9
  },
  "luminance": 0.01617
}

Semantic roles & 50–950 ramp

primary
#321838
secondary
#476E3E
accent
#D0586E
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060307
muted
#7A787A

Preview Lab

Preview with #321838

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

Preview Lab → · Contrast checker → · Palette generator →

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