#321A88#321A88

#321A88 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.167 H 282.6°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#321A88
RGBrgb(50, 26, 136)
HSLhsl(253, 68%, 32%)
HSVhsv(253, 81%, 53%)
CMYKcmyk(63.2%, 80.9%, 0%, 46.7%)
CIE-LABlab(20.80, 41.84, -56.65)
CIE-LCHlch(20.80, 70.43, 306.45°)
OKLaboklab(33.61% 0.0366 -0.1634)
OKLCHoklch(33.61% 0.167 282.6)
XYZxyz(6.1273, 3.1940, 23.5814)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A88 #70881A
analogous
#1A3988 #321A88 #691A88
triadic
#321A88 #88321A #1A8832
tetradic
#321A88 #881A39 #70881A #1A8869
square
#321A88 #881A39 #70881A #1A8869
split-complementary
#321A88 #88691A #39881A
monochromatic
#0C0621 #1F1055 #321A88 #4524BB #6342DB

Accessibility & contrast

On white

12.81
#321A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#321A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A88
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A88#FFFFFF#000000##FFFFFF
##321A881.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321a88;
/* rgb */ color: rgb(50, 26, 136);
/* oklch */ color: oklch(33.6% 0.167 282.6);
Tailwind
colors: {
  custom: {
    50: '#765bac',
    500: '#321a88',
    950: '#000000',
  },
}
SCSS
$custom: #321a88;
$custom-light: #765bac;
$custom-dark: #000000;
JSON
{
  "hex": "#321a88",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 136
  },
  "hsl": {
    "h": 253.091,
    "s": 67.901,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33608,
    "c": 0.16743,
    "h": 282.6
  },
  "luminance": 0.03194
}

Semantic roles & 50–950 ramp

primary
#321A88
secondary
#A1BB43
accent
#EB3DC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #321A88

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

Preview Lab → · Contrast checker → · Palette generator →

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