#321C98#321C98

#321C98 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.185 H 279.5°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#321C98
RGBrgb(50, 28, 152)
HSLhsl(251, 69%, 35%)
HSVhsv(251, 82%, 60%)
CMYKcmyk(67.1%, 81.6%, 0%, 40.4%)
CIE-LABlab(22.91, 45.74, -63.11)
CIE-LCHlch(22.91, 77.94, 305.93°)
OKLaboklab(35.6% 0.0305 -0.1822)
OKLCHoklch(35.6% 0.185 279.5)
XYZxyz(7.3963, 3.7750, 30.0386)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C98 #82981C
analogous
#1C4498 #321C98 #701C98
triadic
#321C98 #98321C #1C9832
tetradic
#321C98 #981C44 #82981C #1C9870
square
#321C98 #981C44 #82981C #1C9870
split-complementary
#321C98 #98701C #44981C
monochromatic
#100931 #211264 #321C98 #4326CC #6950DF

Accessibility & contrast

On white

11.96
#321C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#321C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C98
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C98#FFFFFF#000000##FFFFFF
##321C981.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9B
Deuteranopia (green-blind)
#003296
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #321c98;
/* rgb */ color: rgb(50, 28, 152);
/* oklch */ color: oklch(35.6% 0.185 279.5);
Tailwind
colors: {
  custom: {
    50: '#795db8',
    500: '#321c98',
    950: '#000000',
  },
}
SCSS
$custom: #321c98;
$custom-light: #795db8;
$custom-dark: #000000;
JSON
{
  "hex": "#321c98",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 152
  },
  "hsl": {
    "h": 250.645,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35598,
    "c": 0.18475,
    "h": 279.5
  },
  "luminance": 0.03776
}

Semantic roles & 50–950 ramp

primary
#321C98
secondary
#ADC14E
accent
#EC3CCD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321C98

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

Preview Lab → · Contrast checker → · Palette generator →

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