#321A94#321A94

#321A94 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.182 H 280.4°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#321A94
RGBrgb(50, 26, 148)
HSLhsl(252, 70%, 34%)
HSVhsv(252, 82%, 58%)
CMYKcmyk(66.2%, 82.4%, 0%, 42%)
CIE-LABlab(22.14, 45.47, -61.92)
CIE-LCHlch(22.14, 76.82, 306.29°)
OKLaboklab(34.93% 0.0328 -0.1787)
OKLCHoklch(34.93% 0.182 280.4)
XYZxyz(7.0284, 3.5545, 28.3269)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A94 #7C941A
analogous
#1A3F94 #321A94 #6F1A94
triadic
#321A94 #94321A #1A9432
tetradic
#321A94 #941A3F #7C941A #1A946F
square
#321A94 #941A3F #7C941A #1A946F
split-complementary
#321A94 #946F1A #3F941A
monochromatic
#0F082C #201160 #321A94 #4423C8 #6749DF

Accessibility & contrast

On white

12.27
#321A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#321A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A94
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A94#FFFFFF#000000##FFFFFF
##321A941.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#003092
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #321a94;
/* rgb */ color: rgb(50, 26, 148);
/* oklch */ color: oklch(34.9% 0.182 280.4);
Tailwind
colors: {
  custom: {
    50: '#795bb5',
    500: '#321a94',
    950: '#000000',
  },
}
SCSS
$custom: #321a94;
$custom-light: #795bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#321a94",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 148
  },
  "hsl": {
    "h": 251.803,
    "s": 70.115,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3493,
    "c": 0.18171,
    "h": 280.4
  },
  "luminance": 0.03555
}

Semantic roles & 50–950 ramp

primary
#321A94
secondary
#A9C149
accent
#ED3BCA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321A94

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

Preview Lab → · Contrast checker → · Palette generator →

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