#321B7A#321B7A

#321B7A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.149 H 285.6°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#321B7A
RGBrgb(50, 27, 122)
HSLhsl(255, 64%, 29%)
HSVhsv(255, 78%, 48%)
CMYKcmyk(59%, 77.9%, 0%, 52.2%)
CIE-LABlab(19.50, 37.02, -49.93)
CIE-LCHlch(19.50, 62.16, 306.55°)
OKLaboklab(32.25% 0.04 -0.1438)
OKLCHoklch(32.25% 0.149 285.6)
XYZxyz(5.2191, 2.8668, 18.6869)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B7A #637A1B
analogous
#1B347A #321B7A #621B7A
triadic
#321B7A #7A321B #1B7A32
tetradic
#321B7A #7A1B34 #637A1B #1B7A62
square
#321B7A #7A1B34 #637A1B #1B7A62
split-complementary
#321B7A #7A621B #347A1B
monochromatic
#0A0619 #1D1048 #321B7A #4726AC #603CD4

Accessibility & contrast

On white

13.35
#321B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#321B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B7A
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B7A#FFFFFF#000000##FFFFFF
##321B7A1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002C78
Tritanopia (blue-blind)
#0E3649
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #321b7a;
/* rgb */ color: rgb(50, 27, 122);
/* oklch */ color: oklch(32.3% 0.149 285.6);
Tailwind
colors: {
  custom: {
    50: '#735aa1',
    500: '#321b7a',
    950: '#000000',
  },
}
SCSS
$custom: #321b7a;
$custom-light: #735aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#321b7a",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 254.526,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32253,
    "c": 0.14925,
    "h": 285.6
  },
  "luminance": 0.02867
}

Semantic roles & 50–950 ramp

primary
#321B7A
secondary
#94AE43
accent
#E741BF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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