#321A87#321A87

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

Color values

HEX#321A87
RGBrgb(50, 26, 135)
HSLhsl(253, 68%, 32%)
HSVhsv(253, 81%, 53%)
CMYKcmyk(63%, 80.7%, 0%, 47.1%)
CIE-LABlab(20.70, 41.54, -56.20)
CIE-LCHlch(20.70, 69.89, 306.47°)
OKLaboklab(33.5% 0.0369 -0.1621)
OKLCHoklch(33.5% 0.166 282.8)
XYZxyz(6.0566, 3.1657, 23.2089)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A87 #6F871A
analogous
#1A3987 #321A87 #691A87
triadic
#321A87 #87321A #1A8732
tetradic
#321A87 #871A39 #6F871A #1A8769
square
#321A87 #871A39 #6F871A #1A8769
split-complementary
#321A87 #87691A #39871A
monochromatic
#0C0620 #1F1054 #321A87 #4524BA #6341DA

Accessibility & contrast

On white

12.86
#321A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#321A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A87
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A87#FFFFFF#000000##FFFFFF
##321A871.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #321a87;
/* rgb */ color: rgb(50, 26, 135);
/* oklch */ color: oklch(33.5% 0.166 282.8);
Tailwind
colors: {
  custom: {
    50: '#765aab',
    500: '#321a87',
    950: '#000000',
  },
}
SCSS
$custom: #321a87;
$custom-light: #765aab;
$custom-dark: #000000;
JSON
{
  "hex": "#321a87",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 253.211,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.335,
    "c": 0.16623,
    "h": 282.8
  },
  "luminance": 0.03166
}

Semantic roles & 50–950 ramp

primary
#321A87
secondary
#A0BA42
accent
#EB3DC4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #321A87

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

Preview Lab → · Contrast checker → · Palette generator →

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