#321A8C#321A8C

#321A8C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.172 H 281.8°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#321A8C
RGBrgb(50, 26, 140)
HSLhsl(253, 69%, 33%)
HSVhsv(253, 81%, 55%)
CMYKcmyk(64.3%, 81.4%, 0%, 45.1%)
CIE-LABlab(21.24, 43.06, -58.43)
CIE-LCHlch(21.24, 72.58, 306.39°)
OKLaboklab(34.04% 0.0353 -0.1686)
OKLCHoklch(34.04% 0.172 281.8)
XYZxyz(6.4169, 3.3099, 25.1066)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A8C #748C1A
analogous
#1A3B8C #321A8C #6B1A8C
triadic
#321A8C #8C321A #1A8C32
tetradic
#321A8C #8C1A3B #748C1A #1A8C6B
square
#321A8C #8C1A3B #748C1A #1A8C6B
split-complementary
#321A8C #8C6B1A #3B8C1A
monochromatic
#0D0725 #201058 #321A8C #4424C0 #6444DC

Accessibility & contrast

On white

12.64
#321A8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#321A8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A8C
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A8C#FFFFFF#000000##FFFFFF
##321A8C1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #321a8c;
/* rgb */ color: rgb(50, 26, 140);
/* oklch */ color: oklch(34.0% 0.172 281.8);
Tailwind
colors: {
  custom: {
    50: '#775baf',
    500: '#321a8c',
    950: '#000000',
  },
}
SCSS
$custom: #321a8c;
$custom-light: #775baf;
$custom-dark: #000000;
JSON
{
  "hex": "#321a8c",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 140
  },
  "hsl": {
    "h": 252.632,
    "s": 68.675,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34045,
    "c": 0.17223,
    "h": 281.8
  },
  "luminance": 0.0331
}

Semantic roles & 50–950 ramp

primary
#321A8C
secondary
#A4BE44
accent
#EC3CC7
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #321A8C

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

Preview Lab → · Contrast checker → · Palette generator →

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