#321A71#321A71

#321A71 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.139 H 288.1°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#321A71
RGBrgb(50, 26, 113)
HSLhsl(257, 63%, 27%)
HSVhsv(257, 77%, 44%)
CMYKcmyk(55.8%, 77%, 0%, 55.7%)
CIE-LABlab(18.40, 34.77, -45.95)
CIE-LCHlch(18.40, 57.62, 307.11°)
OKLaboklab(31.2% 0.0433 -0.1321)
OKLCHoklch(31.2% 0.139 288.1)
XYZxyz(4.6645, 2.6089, 15.8774)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A71 #59711A
analogous
#1A2D71 #321A71 #5E1A71
triadic
#321A71 #71321A #1A7132
tetradic
#321A71 #711A2D #59711A #1A715E
square
#321A71 #711A2D #59711A #1A715E
split-complementary
#321A71 #715E1A #2D711A
monochromatic
#0B0619 #1C0F3F #321A71 #4825A3 #6035D0

Accessibility & contrast

On white

13.80
#321A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#321A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A71
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A71#FFFFFF#000000##FFFFFF
##321A711.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002B6F
Tritanopia (blue-blind)
#193244
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #321a71;
/* rgb */ color: rgb(50, 26, 113);
/* oklch */ color: oklch(31.2% 0.139 288.1);
Tailwind
colors: {
  custom: {
    50: '#72599b',
    500: '#321a71',
    950: '#000000',
  },
}
SCSS
$custom: #321a71;
$custom-light: #72599b;
$custom-dark: #000000;
JSON
{
  "hex": "#321a71",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 256.552,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31203,
    "c": 0.13903,
    "h": 288.1
  },
  "luminance": 0.02609
}

Semantic roles & 50–950 ramp

primary
#321A71
secondary
#8AA641
accent
#E642B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321A71

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

Preview Lab → · Contrast checker → · Palette generator →

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