#321C9F#321C9F

#321C9F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.193 H 278.4°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#321C9F
RGBrgb(50, 28, 159)
HSLhsl(250, 70%, 37%)
HSVhsv(250, 82%, 62%)
CMYKcmyk(68.6%, 82.4%, 0%, 37.6%)
CIE-LABlab(23.71, 47.84, -66.08)
CIE-LCHlch(23.71, 81.58, 305.91°)
OKLaboklab(36.38% 0.0284 -0.1909)
OKLCHoklch(36.38% 0.193 278.4)
XYZxyz(7.9866, 4.0111, 33.1475)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C9F #899F1C
analogous
#1C489F #321C9F #741C9F
triadic
#321C9F #9F321C #1C9F32
tetradic
#321C9F #9F1C48 #899F1C #1C9F74
square
#321C9F #9F1C48 #899F1C #1C9F74
split-complementary
#321C9F #9F741C #489F1C
monochromatic
#110A37 #22136B #321C9F #4225D3 #6C54E1

Accessibility & contrast

On white

11.65
#321C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#321C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C9F
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C9F#FFFFFF#000000##FFFFFF
##321C9F1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #321c9f;
/* rgb */ color: rgb(50, 28, 159);
/* oklch */ color: oklch(36.4% 0.193 278.4);
Tailwind
colors: {
  custom: {
    50: '#7b5dbd',
    500: '#321c9f',
    950: '#000000',
  },
}
SCSS
$custom: #321c9f;
$custom-light: #7b5dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#321c9f",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 159
  },
  "hsl": {
    "h": 250.076,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36381,
    "c": 0.19295,
    "h": 278.4
  },
  "luminance": 0.04012
}

Semantic roles & 50–950 ramp

primary
#321C9F
secondary
#B1C453
accent
#ED3BCF
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #321C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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