#321994#321994

#321994 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.183 H 280.5°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#321994
RGBrgb(50, 25, 148)
HSLhsl(252, 71%, 34%)
HSVhsv(252, 83%, 58%)
CMYKcmyk(66.2%, 83.1%, 0%, 42%)
CIE-LABlab(21.98, 45.93, -62.18)
CIE-LCHlch(21.98, 77.30, 306.45°)
OKLaboklab(34.82% 0.0333 -0.1795)
OKLCHoklch(34.82% 0.183 280.5)
XYZxyz(7.0066, 3.5109, 28.3197)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321994 #7B9419
analogous
#193E94 #321994 #701994
triadic
#321994 #943219 #199432
tetradic
#321994 #94193E #7B9419 #199470
square
#321994 #94193E #7B9419 #199470
split-complementary
#321994 #947019 #3E9419
monochromatic
#0F072B #201060 #321994 #4422C8 #6647E0

Accessibility & contrast

On white

12.34
#321994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#321994 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321994
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321994#FFFFFF#000000##FFFFFF
##3219941.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321994;
/* rgb */ color: rgb(50, 25, 148);
/* oklch */ color: oklch(34.8% 0.183 280.5);
Tailwind
colors: {
  custom: {
    50: '#795bb5',
    500: '#321994',
    950: '#000000',
  },
}
SCSS
$custom: #321994;
$custom-light: #795bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#321994",
  "rgb": {
    "r": 50,
    "g": 25,
    "b": 148
  },
  "hsl": {
    "h": 252.195,
    "s": 71.098,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34822,
    "c": 0.18252,
    "h": 280.5
  },
  "luminance": 0.03511
}

Semantic roles & 50–950 ramp

primary
#321994
secondary
#A9C147
accent
#EE3AC9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321994

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

Preview Lab → · Contrast checker → · Palette generator →

#321994 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva