#321887#321887

#321887 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.168 H 283.1°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#321887
RGBrgb(50, 24, 135)
HSLhsl(254, 70%, 31%)
HSVhsv(254, 82%, 53%)
CMYKcmyk(63%, 82.2%, 0%, 47.1%)
CIE-LABlab(20.36, 42.50, -56.75)
CIE-LCHlch(20.36, 70.90, 306.83°)
OKLaboklab(33.27% 0.0381 -0.1637)
OKLCHoklch(33.27% 0.168 283.1)
XYZxyz(6.0138, 3.0802, 23.1946)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321887 #6D8718
analogous
#183587 #321887 #691887
triadic
#321887 #873218 #188732
tetradic
#321887 #871835 #6D8718 #188769
square
#321887 #871835 #6D8718 #188769
split-complementary
#321887 #876918 #358718
monochromatic
#0C061F #1F0F53 #321887 #4521BB #623DDC

Accessibility & contrast

On white

12.99
#321887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#321887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321887
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321887#FFFFFF#000000##FFFFFF
##3218871.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #321887;
/* rgb */ color: rgb(50, 24, 135);
/* oklch */ color: oklch(33.3% 0.168 283.1);
Tailwind
colors: {
  custom: {
    50: '#7659ab',
    500: '#321887',
    950: '#000000',
  },
}
SCSS
$custom: #321887;
$custom-light: #7659ab;
$custom-dark: #000000;
JSON
{
  "hex": "#321887",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 254.054,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33269,
    "c": 0.16804,
    "h": 283.1
  },
  "luminance": 0.03081
}

Semantic roles & 50–950 ramp

primary
#321887
secondary
#9EBB40
accent
#ED3BC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #321887

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

Preview Lab → · Contrast checker → · Palette generator →

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