#321D97#321D97

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

Color values

HEX#321D97
RGBrgb(50, 29, 151)
HSLhsl(250, 68%, 35%)
HSVhsv(250, 81%, 59%)
CMYKcmyk(66.9%, 80.8%, 0%, 40.8%)
CIE-LABlab(22.97, 44.95, -62.40)
CIE-LCHlch(22.97, 76.91, 305.77°)
OKLaboklab(35.6% 0.0303 -0.1802)
OKLCHoklch(35.6% 0.183 279.5)
XYZxyz(7.3389, 3.7906, 29.6171)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D97 #82971D
analogous
#1D4597 #321D97 #6F1D97
triadic
#321D97 #97321D #1D9732
tetradic
#321D97 #971D45 #82971D #1D976F
square
#321D97 #971D45 #82971D #1D976F
split-complementary
#321D97 #976F1D #45971D
monochromatic
#100930 #211364 #321D97 #4327CA #6951DE

Accessibility & contrast

On white

11.94
#321D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321D97
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D97#FFFFFF#000000##FFFFFF
##321D971.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321d97;
/* rgb */ color: rgb(50, 29, 151);
/* oklch */ color: oklch(35.6% 0.183 279.5);
Tailwind
colors: {
  custom: {
    50: '#795db7',
    500: '#321d97',
    950: '#000000',
  },
}
SCSS
$custom: #321d97;
$custom-light: #795db7;
$custom-dark: #000000;
JSON
{
  "hex": "#321d97",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 250.328,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35602,
    "c": 0.18271,
    "h": 279.5
  },
  "luminance": 0.03791
}

Semantic roles & 50–950 ramp

primary
#321D97
secondary
#ADC04F
accent
#EB3DCD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321D97

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

Preview Lab → · Contrast checker → · Palette generator →

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