#321B73#321B73

#321B73 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.140 H 287.4°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#321B73
RGBrgb(50, 27, 115)
HSLhsl(256, 62%, 28%)
HSVhsv(256, 77%, 45%)
CMYKcmyk(56.5%, 76.5%, 0%, 54.9%)
CIE-LABlab(18.80, 34.84, -46.60)
CIE-LCHlch(18.80, 58.18, 306.78°)
OKLaboklab(31.54% 0.0419 -0.134)
OKLCHoklch(31.54% 0.14 287.4)
XYZxyz(4.8009, 2.6995, 16.4844)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B73 #5C731B
analogous
#1B3073 #321B73 #5E1B73
triadic
#321B73 #73321B #1B7332
tetradic
#321B73 #731B30 #5C731B #1B735E
square
#321B73 #731B30 #5C731B #1B735E
split-complementary
#321B73 #735E1B #30731B
monochromatic
#0B0619 #1C0F41 #321B73 #4827A5 #6038D0

Accessibility & contrast

On white

13.64
#321B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#321B73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B73
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B73#FFFFFF#000000##FFFFFF
##321B731.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#173345
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321b73;
/* rgb */ color: rgb(50, 27, 115);
/* oklch */ color: oklch(31.5% 0.140 287.4);
Tailwind
colors: {
  custom: {
    50: '#725a9c',
    500: '#321b73',
    950: '#000000',
  },
}
SCSS
$custom: #321b73;
$custom-light: #725a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#321b73",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 115
  },
  "hsl": {
    "h": 255.682,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31542,
    "c": 0.14041,
    "h": 287.4
  },
  "luminance": 0.027
}

Semantic roles & 50–950 ramp

primary
#321B73
secondary
#8DA842
accent
#E543BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321B73

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

Preview Lab → · Contrast checker → · Palette generator →

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