#321E8C#321E8C

#321E8C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.168 H 281.3°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#321E8C
RGBrgb(50, 30, 140)
HSLhsl(251, 65%, 33%)
HSVhsv(251, 79%, 55%)
CMYKcmyk(64.3%, 78.6%, 0%, 45.1%)
CIE-LABlab(21.94, 41.05, -57.27)
CIE-LCHlch(21.94, 70.46, 305.63°)
OKLaboklab(34.53% 0.0329 -0.1652)
OKLCHoklch(34.53% 0.168 281.3)
XYZxyz(6.5118, 3.4996, 25.1382)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E8C #788C1E
analogous
#1E418C #321E8C #691E8C
triadic
#321E8C #8C321E #1E8C32
tetradic
#321E8C #8C1E41 #788C1E #1E8C69
square
#321E8C #8C1E41 #788C1E #1E8C69
split-complementary
#321E8C #8C691E #418C1E
monochromatic
#0E0827 #20135A #321E8C #4429BE #654CD9

Accessibility & contrast

On white

12.35
#321E8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#321E8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E8C
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E8C#FFFFFF#000000##FFFFFF
##321E8C1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #321e8c;
/* rgb */ color: rgb(50, 30, 140);
/* oklch */ color: oklch(34.5% 0.168 281.3);
Tailwind
colors: {
  custom: {
    50: '#775daf',
    500: '#321e8c',
    950: '#000000',
  },
}
SCSS
$custom: #321e8c;
$custom-light: #775daf;
$custom-dark: #000000;
JSON
{
  "hex": "#321e8c",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 140
  },
  "hsl": {
    "h": 250.909,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34532,
    "c": 0.16849,
    "h": 281.3
  },
  "luminance": 0.035
}

Semantic roles & 50–950 ramp

primary
#321E8C
secondary
#A7BB4B
accent
#E840C9
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #321E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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