#321C97#321C97

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

Color values

HEX#321C97
RGBrgb(50, 28, 151)
HSLhsl(251, 69%, 35%)
HSVhsv(251, 81%, 59%)
CMYKcmyk(66.9%, 81.5%, 0%, 40.8%)
CIE-LABlab(22.80, 45.43, -62.68)
CIE-LCHlch(22.80, 77.41, 305.94°)
OKLaboklab(35.49% 0.0308 -0.181)
OKLCHoklch(35.49% 0.184 279.7)
XYZxyz(7.3148, 3.7424, 29.6090)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C97 #81971C
analogous
#1C4397 #321C97 #701C97
triadic
#321C97 #97321C #1C9732
tetradic
#321C97 #971C43 #81971C #1C9770
square
#321C97 #971C43 #81971C #1C9770
split-complementary
#321C97 #97701C #43971C
monochromatic
#100930 #211263 #321C97 #4326CB #694FDE

Accessibility & contrast

On white

12.01
#321C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321C97
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C97#FFFFFF#000000##FFFFFF
##321C971.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321c97;
/* rgb */ color: rgb(50, 28, 151);
/* oklch */ color: oklch(35.5% 0.184 279.7);
Tailwind
colors: {
  custom: {
    50: '#795db7',
    500: '#321c97',
    950: '#000000',
  },
}
SCSS
$custom: #321c97;
$custom-light: #795db7;
$custom-dark: #000000;
JSON
{
  "hex": "#321c97",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 250.732,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35487,
    "c": 0.18357,
    "h": 279.7
  },
  "luminance": 0.03743
}

Semantic roles & 50–950 ramp

primary
#321C97
secondary
#ACC14E
accent
#EC3CCC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321C97

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

Preview Lab → · Contrast checker → · Palette generator →

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