#321340#321340

#321340 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.8% C 0.086 H 313.8°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#321340
RGBrgb(50, 19, 64)
HSLhsl(281, 54%, 16%)
HSVhsv(281, 70%, 25%)
CMYKcmyk(21.9%, 70.3%, 0%, 74.9%)
CIE-LABlab(12.70, 24.47, -22.20)
CIE-LCHlch(12.70, 33.04, 317.80°)
OKLaboklab(25.79% 0.0597 -0.0623)
OKLCHoklch(25.79% 0.086 313.8)
XYZxyz(2.4735, 1.5141, 5.0114)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321340 #214013
analogous
#1C1340 #321340 #401338
triadic
#321340 #403213 #134032
tetradic
#321340 #401C13 #214013 #133840
square
#321340 #401C13 #214013 #133840
split-complementary
#321340 #384013 #13401C
monochromatic
#120718 #120718 #321340 #57216F #7C2F9E

Accessibility & contrast

On white

16.12
#321340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#321340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321340
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321340#FFFFFF#000000##FFFFFF
##3213401.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041F41
Deuteranopia (green-blind)
#11223F
Tritanopia (blue-blind)
#311B27
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #321340;
/* rgb */ color: rgb(50, 19, 64);
/* oklch */ color: oklch(25.8% 0.086 313.8);
Tailwind
colors: {
  custom: {
    50: '#6c5375',
    500: '#321340',
    950: '#000000',
  },
}
SCSS
$custom: #321340;
$custom-light: #6c5375;
$custom-dark: #000000;
JSON
{
  "hex": "#321340",
  "rgb": {
    "r": 50,
    "g": 19,
    "b": 64
  },
  "hsl": {
    "h": 281.333,
    "s": 54.217,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25792,
    "c": 0.08632,
    "h": 313.8
  },
  "luminance": 0.01514
}

Semantic roles & 50–950 ramp

primary
#321340
secondary
#4B7936
accent
#DE4A78
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #321340

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

Preview Lab → · Contrast checker → · Palette generator →

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