#321A8E#321A8E

#321A8E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.175 H 281.5°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#321A8E
RGBrgb(50, 26, 142)
HSLhsl(252, 69%, 33%)
HSVhsv(252, 82%, 56%)
CMYKcmyk(64.8%, 81.7%, 0%, 44.3%)
CIE-LABlab(21.47, 43.66, -59.31)
CIE-LCHlch(21.47, 73.65, 306.36°)
OKLaboklab(34.26% 0.0347 -0.1711)
OKLCHoklch(34.26% 0.175 281.5)
XYZxyz(6.5657, 3.3694, 25.8903)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A8E #768E1A
analogous
#1A3C8E #321A8E #6C1A8E
triadic
#321A8E #8E321A #1A8E32
tetradic
#321A8E #8E1A3C #768E1A #1A8E6C
square
#321A8E #8E1A3C #768E1A #1A8E6C
split-complementary
#321A8E #8E6C1A #3C8E1A
monochromatic
#0E0727 #20115A #321A8E #4423C2 #6545DD

Accessibility & contrast

On white

12.54
#321A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#321A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A8E
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A8E#FFFFFF#000000##FFFFFF
##321A8E1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #321a8e;
/* rgb */ color: rgb(50, 26, 142);
/* oklch */ color: oklch(34.3% 0.175 281.5);
Tailwind
colors: {
  custom: {
    50: '#775bb0',
    500: '#321a8e',
    950: '#000000',
  },
}
SCSS
$custom: #321a8e;
$custom-light: #775bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#321a8e",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 252.414,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34264,
    "c": 0.17461,
    "h": 281.5
  },
  "luminance": 0.0337
}

Semantic roles & 50–950 ramp

primary
#321A8E
secondary
#A5BE45
accent
#EC3CC7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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