#321F71#321F71

#321F71 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 31.9% C 0.133 H 286.9°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#321F71
RGBrgb(50, 31, 113)
HSLhsl(254, 57%, 28%)
HSVhsv(254, 73%, 44%)
CMYKcmyk(55.8%, 72.6%, 0%, 55.7%)
CIE-LABlab(19.43, 31.89, -44.27)
CIE-LCHlch(19.43, 54.56, 305.77°)
OKLaboklab(31.94% 0.0386 -0.1272)
OKLCHoklch(31.94% 0.133 286.9)
XYZxyz(4.7851, 2.8501, 15.9176)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F71 #5E711F
analogous
#1F3571 #321F71 #5B1F71
triadic
#321F71 #71321F #1F7132
tetradic
#321F71 #711F35 #5E711F #1F715B
square
#321F71 #711F35 #5E711F #1F715B
split-complementary
#321F71 #715B1F #35711F
monochromatic
#0B0718 #1D1241 #321F71 #472CA1 #6040CB

Accessibility & contrast

On white

13.38
#321F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#321F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F71
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F71#FFFFFF#000000##FFFFFF
##321F711.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#193445
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #321f71;
/* rgb */ color: rgb(50, 31, 113);
/* oklch */ color: oklch(31.9% 0.133 286.9);
Tailwind
colors: {
  custom: {
    50: '#715c9b',
    500: '#321f71',
    950: '#000000',
  },
}
SCSS
$custom: #321f71;
$custom-light: #715c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#321f71",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 253.902,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31935,
    "c": 0.13294,
    "h": 286.9
  },
  "luminance": 0.0285
}

Semantic roles & 50–950 ramp

primary
#321F71
secondary
#8FA547
accent
#E048BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321F71

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

Preview Lab → · Contrast checker → · Palette generator →

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