#321C88#321C88

#321C88 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.166 H 282.3°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#321C88
RGBrgb(50, 28, 136)
HSLhsl(252, 66%, 32%)
HSVhsv(252, 79%, 53%)
CMYKcmyk(63.2%, 79.4%, 0%, 46.7%)
CIE-LABlab(21.15, 40.84, -56.07)
CIE-LCHlch(21.15, 69.37, 306.06°)
OKLaboklab(33.85% 0.0353 -0.1617)
OKLCHoklch(33.85% 0.166 282.3)
XYZxyz(6.1732, 3.2858, 23.5967)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C88 #72881C
analogous
#1C3C88 #321C88 #681C88
triadic
#321C88 #88321C #1C8832
tetradic
#321C88 #881C3C #72881C #1C8868
square
#321C88 #881C3C #72881C #1C8868
split-complementary
#321C88 #88681C #3C881C
monochromatic
#0D0722 #1F1255 #321C88 #4526BB #6446D9

Accessibility & contrast

On white

12.67
#321C88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#321C88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C88
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C88#FFFFFF#000000##FFFFFF
##321C881.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #321c88;
/* rgb */ color: rgb(50, 28, 136);
/* oklch */ color: oklch(33.9% 0.166 282.3);
Tailwind
colors: {
  custom: {
    50: '#765cac',
    500: '#321c88',
    950: '#000000',
  },
}
SCSS
$custom: #321c88;
$custom-light: #765cac;
$custom-dark: #000000;
JSON
{
  "hex": "#321c88",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 136
  },
  "hsl": {
    "h": 252.222,
    "s": 65.854,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33852,
    "c": 0.16554,
    "h": 282.3
  },
  "luminance": 0.03286
}

Semantic roles & 50–950 ramp

primary
#321C88
secondary
#A3BA45
accent
#E93FC6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #321C88

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

Preview Lab → · Contrast checker → · Palette generator →

#321C88 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva