#321D80#321D80

#321D80 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.155 H 283.8°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#321D80
RGBrgb(50, 29, 128)
HSLhsl(253, 63%, 31%)
HSVhsv(253, 77%, 50%)
CMYKcmyk(60.9%, 77.3%, 0%, 49.8%)
CIE-LABlab(20.50, 37.81, -52.11)
CIE-LCHlch(20.50, 64.38, 305.97°)
OKLaboklab(33.14% 0.0369 -0.1502)
OKLCHoklch(33.14% 0.155 283.8)
XYZxyz(5.6498, 3.1150, 20.7214)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D80 #6B801D
analogous
#1D3980 #321D80 #631D80
triadic
#321D80 #80321D #1D8032
tetradic
#321D80 #801D39 #6B801D #1D8063
square
#321D80 #801D39 #6B801D #1D8063
split-complementary
#321D80 #80631D #39801D
monochromatic
#0B061C #1F124E #321D80 #4528B2 #6243D4

Accessibility & contrast

On white

12.94
#321D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321D80
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D80#FFFFFF#000000##FFFFFF
##321D801.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002E7E
Tritanopia (blue-blind)
#02394D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #321d80;
/* rgb */ color: rgb(50, 29, 128);
/* oklch */ color: oklch(33.1% 0.155 283.8);
Tailwind
colors: {
  custom: {
    50: '#745ca6',
    500: '#321d80',
    950: '#000000',
  },
}
SCSS
$custom: #321d80;
$custom-light: #745ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#321d80",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 128
  },
  "hsl": {
    "h": 252.727,
    "s": 63.057,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3314,
    "c": 0.15463,
    "h": 283.8
  },
  "luminance": 0.03115
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #321D80

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

Preview Lab → · Contrast checker → · Palette generator →

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