#321A72#321A72

#321A72 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.140 H 287.9°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#321A72
RGBrgb(50, 26, 114)
HSLhsl(256, 63%, 27%)
HSVhsv(256, 77%, 45%)
CMYKcmyk(56.1%, 77.2%, 0%, 55.3%)
CIE-LABlab(18.50, 35.08, -46.44)
CIE-LCHlch(18.50, 58.19, 307.07°)
OKLaboklab(31.3% 0.043 -0.1335)
OKLCHoklch(31.3% 0.14 287.9)
XYZxyz(4.7212, 2.6316, 16.1755)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A72 #5A721A
analogous
#1A2E72 #321A72 #5E1A72
triadic
#321A72 #72321A #1A7232
tetradic
#321A72 #721A2E #5A721A #1A725E
square
#321A72 #721A2E #5A721A #1A725E
split-complementary
#321A72 #725E1A #2E721A
monochromatic
#0B0619 #1C0F40 #321A72 #4825A4 #6035D1

Accessibility & contrast

On white

13.76
#321A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#321A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A72
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A72#FFFFFF#000000##FFFFFF
##321A721.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#183244
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #321a72;
/* rgb */ color: rgb(50, 26, 114);
/* oklch */ color: oklch(31.3% 0.140 287.9);
Tailwind
colors: {
  custom: {
    50: '#72599b',
    500: '#321a72',
    950: '#000000',
  },
}
SCSS
$custom: #321a72;
$custom-light: #72599b;
$custom-dark: #000000;
JSON
{
  "hex": "#321a72",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 256.364,
    "s": 62.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31304,
    "c": 0.14029,
    "h": 287.9
  },
  "luminance": 0.02632
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #321A72

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

Preview Lab → · Contrast checker → · Palette generator →

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