#321B79#321B79

#321B79 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.148 H 285.8°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#321B79
RGBrgb(50, 27, 121)
HSLhsl(255, 64%, 29%)
HSVhsv(255, 78%, 47%)
CMYKcmyk(58.7%, 77.7%, 0%, 52.5%)
CIE-LABlab(19.40, 36.71, -49.46)
CIE-LCHlch(19.40, 61.59, 306.58°)
OKLaboklab(32.15% 0.0403 -0.1424)
OKLCHoklch(32.15% 0.148 285.8)
XYZxyz(5.1575, 2.8422, 18.3623)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B79 #62791B
analogous
#1B3379 #321B79 #611B79
triadic
#321B79 #79321B #1B7932
tetradic
#321B79 #791B33 #62791B #1B7961
square
#321B79 #791B33 #62791B #1B7961
split-complementary
#321B79 #79611B #33791B
monochromatic
#0A0619 #1D1047 #321B79 #4726AB #603BD3

Accessibility & contrast

On white

13.39
#321B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321B79
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B79#FFFFFF#000000##FFFFFF
##321B791.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002C77
Tritanopia (blue-blind)
#103549
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #321b79;
/* rgb */ color: rgb(50, 27, 121);
/* oklch */ color: oklch(32.1% 0.148 285.8);
Tailwind
colors: {
  custom: {
    50: '#735aa1',
    500: '#321b79',
    950: '#000000',
  },
}
SCSS
$custom: #321b79;
$custom-light: #735aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#321b79",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 254.681,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3215,
    "c": 0.148,
    "h": 285.8
  },
  "luminance": 0.02842
}

Semantic roles & 50–950 ramp

primary
#321B79
secondary
#93AD43
accent
#E741BE
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321B79

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

Preview Lab → · Contrast checker → · Palette generator →

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