#321B83#321B83

#321B83 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.160 H 283.5°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#321B83
RGBrgb(50, 27, 131)
HSLhsl(253, 66%, 31%)
HSVhsv(253, 79%, 51%)
CMYKcmyk(61.8%, 79.4%, 0%, 48.6%)
CIE-LABlab(20.44, 39.81, -54.10)
CIE-LCHlch(20.44, 67.17, 306.34°)
OKLaboklab(33.19% 0.0375 -0.156)
OKLCHoklch(33.19% 0.16 283.5)
XYZxyz(5.8028, 3.1003, 21.7610)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B83 #6C831B
analogous
#1B3883 #321B83 #661B83
triadic
#321B83 #83321B #1B8332
tetradic
#321B83 #831B38 #6C831B #1B8366
square
#321B83 #831B38 #6C831B #1B8366
split-complementary
#321B83 #83661B #38831B
monochromatic
#0B061E #1F1150 #321B83 #4525B6 #6241D8

Accessibility & contrast

On white

12.96
#321B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#321B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B83
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B83#FFFFFF#000000##FFFFFF
##321B831.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321b83;
/* rgb */ color: rgb(50, 27, 131);
/* oklch */ color: oklch(33.2% 0.160 283.5);
Tailwind
colors: {
  custom: {
    50: '#755ba8',
    500: '#321b83',
    950: '#000000',
  },
}
SCSS
$custom: #321b83;
$custom-light: #755ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#321b83",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 131
  },
  "hsl": {
    "h": 253.269,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33194,
    "c": 0.16041,
    "h": 283.5
  },
  "luminance": 0.03101
}

Semantic roles & 50–950 ramp

primary
#321B83
secondary
#9DB643
accent
#E93FC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321B83

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

Preview Lab → · Contrast checker → · Palette generator →

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