#321B98#321B98

#321B98 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.186 H 279.6°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#321B98
RGBrgb(50, 27, 152)
HSLhsl(251, 70%, 35%)
HSVhsv(251, 82%, 60%)
CMYKcmyk(67.1%, 82.2%, 0%, 40.4%)
CIE-LABlab(22.75, 46.21, -63.37)
CIE-LCHlch(22.75, 78.43, 306.10°)
OKLaboklab(35.49% 0.031 -0.183)
OKLCHoklch(35.49% 0.186 279.6)
XYZxyz(7.3730, 3.7284, 30.0308)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B98 #81981B
analogous
#1B4398 #321B98 #701B98
triadic
#321B98 #98321B #1B9832
tetradic
#321B98 #981B43 #81981B #1B9870
square
#321B98 #981B43 #81981B #1B9870
split-complementary
#321B98 #98701B #43981B
monochromatic
#100930 #211264 #321B98 #4324CC #694EE0

Accessibility & contrast

On white

12.03
#321B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#321B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B98
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B98#FFFFFF#000000##FFFFFF
##321B981.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9B
Deuteranopia (green-blind)
#003196
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #321b98;
/* rgb */ color: rgb(50, 27, 152);
/* oklch */ color: oklch(35.5% 0.186 279.6);
Tailwind
colors: {
  custom: {
    50: '#795cb8',
    500: '#321b98',
    950: '#000000',
  },
}
SCSS
$custom: #321b98;
$custom-light: #795cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#321b98",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 152
  },
  "hsl": {
    "h": 251.04,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35486,
    "c": 0.18558,
    "h": 279.6
  },
  "luminance": 0.03729
}

Semantic roles & 50–950 ramp

primary
#321B98
secondary
#ACC24D
accent
#ED3BCC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321B98

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

Preview Lab → · Contrast checker → · Palette generator →

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