#321E81#321E81

#321E81 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.155 H 283.4°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#321E81
RGBrgb(50, 30, 129)
HSLhsl(252, 62%, 31%)
HSVhsv(252, 77%, 51%)
CMYKcmyk(61.2%, 76.7%, 0%, 49.4%)
CIE-LABlab(20.79, 37.58, -52.26)
CIE-LCHlch(20.79, 64.37, 305.72°)
OKLaboklab(33.38% 0.0359 -0.1506)
OKLCHoklch(33.38% 0.155 283.4)
XYZxyz(5.7409, 3.1913, 21.0781)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E81 #6D811E
analogous
#1E3B81 #321E81 #631E81
triadic
#321E81 #81321E #1E8132
tetradic
#321E81 #811E3B #6D811E #1E8163
square
#321E81 #811E3B #6D811E #1E8163
split-complementary
#321E81 #81631E #3B811E
monochromatic
#0C071E #1F124F #321E81 #452AB3 #6246D4

Accessibility & contrast

On white

12.82
#321E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#321E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E81
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E81#FFFFFF#000000##FFFFFF
##321E811.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #321e81;
/* rgb */ color: rgb(50, 30, 129);
/* oklch */ color: oklch(33.4% 0.155 283.4);
Tailwind
colors: {
  custom: {
    50: '#745ca7',
    500: '#321e81',
    950: '#000000',
  },
}
SCSS
$custom: #321e81;
$custom-light: #745ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#321e81",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 129
  },
  "hsl": {
    "h": 252.121,
    "s": 62.264,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33379,
    "c": 0.15481,
    "h": 283.4
  },
  "luminance": 0.03192
}

Semantic roles & 50–950 ramp

primary
#321E81
secondary
#9EB447
accent
#E542C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321E81

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

Preview Lab → · Contrast checker → · Palette generator →

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