#321D7F#321D7F

#321D7F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.153 H 284.0°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#321D7F
RGBrgb(50, 29, 127)
HSLhsl(253, 63%, 31%)
HSVhsv(253, 77%, 50%)
CMYKcmyk(60.6%, 77.2%, 0%, 50.2%)
CIE-LABlab(20.40, 37.50, -51.65)
CIE-LCHlch(20.40, 63.82, 305.98°)
OKLaboklab(33.04% 0.0371 -0.1488)
OKLCHoklch(33.04% 0.153 284)
XYZxyz(5.5843, 3.0888, 20.3765)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D7F #6A7F1D
analogous
#1D397F #321D7F #631D7F
triadic
#321D7F #7F321D #1D7F32
tetradic
#321D7F #7F1D39 #6A7F1D #1D7F63
square
#321D7F #7F1D39 #6A7F1D #1D7F63
split-complementary
#321D7F #7F631D #397F1D
monochromatic
#0B061B #1E124D #321D7F #4628B1 #6242D4

Accessibility & contrast

On white

12.98
#321D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#321D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D7F
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D7F#FFFFFF#000000##FFFFFF
##321D7F1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#04394C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #321d7f;
/* rgb */ color: rgb(50, 29, 127);
/* oklch */ color: oklch(33.0% 0.153 284.0);
Tailwind
colors: {
  custom: {
    50: '#745ca5',
    500: '#321d7f',
    950: '#000000',
  },
}
SCSS
$custom: #321d7f;
$custom-light: #745ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#321d7f",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 252.857,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33037,
    "c": 0.15337,
    "h": 284
  },
  "luminance": 0.03089
}

Semantic roles & 50–950 ramp

primary
#321D7F
secondary
#9BB245
accent
#E642C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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