#321A8A#321A8A

#321A8A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.170 H 282.2°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#321A8A
RGBrgb(50, 26, 138)
HSLhsl(253, 68%, 32%)
HSVhsv(253, 81%, 54%)
CMYKcmyk(63.8%, 81.2%, 0%, 45.9%)
CIE-LABlab(21.02, 42.45, -57.54)
CIE-LCHlch(21.02, 71.51, 306.42°)
OKLaboklab(33.83% 0.036 -0.166)
OKLCHoklch(33.83% 0.17 282.2)
XYZxyz(6.2708, 3.2514, 24.3370)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A8A #728A1A
analogous
#1A3A8A #321A8A #6A1A8A
triadic
#321A8A #8A321A #1A8A32
tetradic
#321A8A #8A1A3A #728A1A #1A8A6A
square
#321A8A #8A1A3A #728A1A #1A8A6A
split-complementary
#321A8A #8A6A1A #3A8A1A
monochromatic
#0D0723 #1F1057 #321A8A #4524BD #6443DC

Accessibility & contrast

On white

12.72
#321A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321A8A
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A8A#FFFFFF#000000##FFFFFF
##321A8A1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #321a8a;
/* rgb */ color: rgb(50, 26, 138);
/* oklch */ color: oklch(33.8% 0.170 282.2);
Tailwind
colors: {
  custom: {
    50: '#765bad',
    500: '#321a8a',
    950: '#000000',
  },
}
SCSS
$custom: #321a8a;
$custom-light: #765bad;
$custom-dark: #000000;
JSON
{
  "hex": "#321a8a",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 252.857,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33826,
    "c": 0.16983,
    "h": 282.2
  },
  "luminance": 0.03252
}

Semantic roles & 50–950 ramp

primary
#321A8A
secondary
#A3BD43
accent
#EB3DC6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #321A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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