#321988#321988

#321988 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.168 H 282.8°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#321988
RGBrgb(50, 25, 136)
HSLhsl(254, 69%, 32%)
HSVhsv(254, 82%, 53%)
CMYKcmyk(63.2%, 81.6%, 0%, 46.7%)
CIE-LABlab(20.64, 42.33, -56.93)
CIE-LCHlch(20.64, 70.94, 306.63°)
OKLaboklab(33.49% 0.0372 -0.1642)
OKLCHoklch(33.49% 0.168 282.8)
XYZxyz(6.1056, 3.1505, 23.5741)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321988 #6F8819
analogous
#193788 #321988 #6A1988
triadic
#321988 #883219 #198832
tetradic
#321988 #881937 #6F8819 #19886A
square
#321988 #881937 #6F8819 #19886A
split-complementary
#321988 #886A19 #378819
monochromatic
#0C0621 #1F0F54 #321988 #4523BC #6340DC

Accessibility & contrast

On white

12.88
#321988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#321988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321988
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321988#FFFFFF#000000##FFFFFF
##3219881.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002E86
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #321988;
/* rgb */ color: rgb(50, 25, 136);
/* oklch */ color: oklch(33.5% 0.168 282.8);
Tailwind
colors: {
  custom: {
    50: '#765aac',
    500: '#321988',
    950: '#000000',
  },
}
SCSS
$custom: #321988;
$custom-light: #765aac;
$custom-dark: #000000;
JSON
{
  "hex": "#321988",
  "rgb": {
    "r": 50,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 253.514,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33492,
    "c": 0.16834,
    "h": 282.8
  },
  "luminance": 0.03151
}

Semantic roles & 50–950 ramp

primary
#321988
secondary
#A0BB41
accent
#EC3CC4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #321988

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

Preview Lab → · Contrast checker → · Palette generator →

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