#321F81#321F81

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

Color values

HEX#321F81
RGBrgb(50, 31, 129)
HSLhsl(252, 61%, 31%)
HSVhsv(252, 76%, 51%)
CMYKcmyk(61.2%, 76%, 0%, 49.4%)
CIE-LABlab(20.99, 37.03, -51.94)
CIE-LCHlch(20.99, 63.78, 305.49°)
OKLaboklab(33.52% 0.0351 -0.1497)
OKLCHoklch(33.52% 0.154 283.2)
XYZxyz(5.7666, 3.2427, 21.0867)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F81 #6E811F
analogous
#1F3D81 #321F81 #631F81
triadic
#321F81 #81321F #1F8132
tetradic
#321F81 #811F3D #6E811F #1F8163
square
#321F81 #811F3D #6E811F #1F8163
split-complementary
#321F81 #81631F #3D811F
monochromatic
#0C071E #1F1350 #321F81 #452BB2 #6347D3

Accessibility & contrast

On white

12.74
#321F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#321F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F81
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F81#FFFFFF#000000##FFFFFF
##321F811.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.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: #321f81;
/* rgb */ color: rgb(50, 31, 129);
/* oklch */ color: oklch(33.5% 0.154 283.2);
Tailwind
colors: {
  custom: {
    50: '#745da7',
    500: '#321f81',
    950: '#000000',
  },
}
SCSS
$custom: #321f81;
$custom-light: #745da7;
$custom-dark: #000000;
JSON
{
  "hex": "#321f81",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 251.633,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33518,
    "c": 0.15372,
    "h": 283.2
  },
  "luminance": 0.03243
}

Semantic roles & 50–950 ramp

primary
#321F81
secondary
#9FB448
accent
#E443C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321F81

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

Preview Lab → · Contrast checker → · Palette generator →

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