#321E80#321E80

#321E80 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.154 H 283.6°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#321E80
RGBrgb(50, 30, 128)
HSLhsl(252, 62%, 31%)
HSVhsv(252, 77%, 50%)
CMYKcmyk(60.9%, 76.6%, 0%, 49.8%)
CIE-LABlab(20.69, 37.27, -51.79)
CIE-LCHlch(20.69, 63.81, 305.74°)
OKLaboklab(33.28% 0.0361 -0.1492)
OKLCHoklch(33.28% 0.154 283.6)
XYZxyz(5.6747, 3.1648, 20.7297)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E80 #6C801E
analogous
#1E3B80 #321E80 #631E80
triadic
#321E80 #80321E #1E8032
tetradic
#321E80 #801E3B #6C801E #1E8063
square
#321E80 #801E3B #6C801E #1E8063
split-complementary
#321E80 #80631E #3B801E
monochromatic
#0B071D #1F124E #321E80 #452AB2 #6245D3

Accessibility & contrast

On white

12.86
#321E80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#321E80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E80
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E80#FFFFFF#000000##FFFFFF
##321E801.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#02394D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #321e80;
/* rgb */ color: rgb(50, 30, 128);
/* oklch */ color: oklch(33.3% 0.154 283.6);
Tailwind
colors: {
  custom: {
    50: '#745ca6',
    500: '#321e80',
    950: '#000000',
  },
}
SCSS
$custom: #321e80;
$custom-light: #745ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#321e80",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 128
  },
  "hsl": {
    "h": 252.245,
    "s": 62.025,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33276,
    "c": 0.15355,
    "h": 283.6
  },
  "luminance": 0.03165
}

Semantic roles & 50–950 ramp

primary
#321E80
secondary
#9DB347
accent
#E543C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321E80

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

Preview Lab → · Contrast checker → · Palette generator →

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