#321788#321788

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

Color values

HEX#321788
RGBrgb(50, 23, 136)
HSLhsl(254, 71%, 31%)
HSVhsv(254, 83%, 53%)
CMYKcmyk(63.2%, 83.1%, 0%, 46.7%)
CIE-LABlab(20.31, 43.27, -57.46)
CIE-LCHlch(20.31, 71.93, 306.98°)
OKLaboklab(33.27% 0.0384 -0.1657)
OKLCHoklch(33.27% 0.17 283)
XYZxyz(6.0643, 3.0681, 23.5604)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321788 #6D8817
analogous
#173488 #321788 #6A1788
triadic
#321788 #883217 #178832
tetradic
#321788 #881734 #6D8817 #17886A
square
#321788 #881734 #6D8817 #17886A
split-complementary
#321788 #886A17 #348817
monochromatic
#0C051F #1F0E54 #321788 #4520BC #623BDE

Accessibility & contrast

On white

13.01
#321788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#321788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321788
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321788#FFFFFF#000000##FFFFFF
##3217881.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321788;
/* rgb */ color: rgb(50, 23, 136);
/* oklch */ color: oklch(33.3% 0.170 283.0);
Tailwind
colors: {
  custom: {
    50: '#7659ac',
    500: '#321788',
    950: '#000000',
  },
}
SCSS
$custom: #321788;
$custom-light: #7659ac;
$custom-dark: #000000;
JSON
{
  "hex": "#321788",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 254.336,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33268,
    "c": 0.17009,
    "h": 283
  },
  "luminance": 0.03068
}

Semantic roles & 50–950 ramp

primary
#321788
secondary
#9EBC3F
accent
#EE3AC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #321788

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

Preview Lab → · Contrast checker → · Palette generator →

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