#321A83#321A83

#321A83 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.161 H 283.7°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#321A83
RGBrgb(50, 26, 131)
HSLhsl(254, 67%, 31%)
HSVhsv(254, 80%, 51%)
CMYKcmyk(61.8%, 80.2%, 0%, 48.6%)
CIE-LABlab(20.26, 40.32, -54.40)
CIE-LCHlch(20.26, 67.71, 306.55°)
OKLaboklab(33.07% 0.0381 -0.1568)
OKLCHoklch(33.07% 0.161 283.7)
XYZxyz(5.7803, 3.0552, 21.7535)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A83 #6B831A
analogous
#1A3683 #321A83 #661A83
triadic
#321A83 #83321A #1A8332
tetradic
#321A83 #831A36 #6B831A #1A8366
square
#321A83 #831A36 #6B831A #1A8366
split-complementary
#321A83 #83661A #36831A
monochromatic
#0B061D #1F1050 #321A83 #4524B6 #623FD9

Accessibility & contrast

On white

13.03
#321A83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#321A83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A83
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A83#FFFFFF#000000##FFFFFF
##321A831.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002D81
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #321a83;
/* rgb */ color: rgb(50, 26, 131);
/* oklch */ color: oklch(33.1% 0.161 283.7);
Tailwind
colors: {
  custom: {
    50: '#755aa8',
    500: '#321a83',
    950: '#000000',
  },
}
SCSS
$custom: #321a83;
$custom-light: #755aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#321a83",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 131
  },
  "hsl": {
    "h": 253.714,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3307,
    "c": 0.16138,
    "h": 283.7
  },
  "luminance": 0.03056
}

Semantic roles & 50–950 ramp

primary
#321A83
secondary
#9CB742
accent
#EA3EC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321A83

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

Preview Lab → · Contrast checker → · Palette generator →

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