#321990#321990

#321990 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.178 H 281.2°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#321990
RGBrgb(50, 25, 144)
HSLhsl(253, 70%, 33%)
HSVhsv(253, 83%, 56%)
CMYKcmyk(65.3%, 82.6%, 0%, 43.5%)
CIE-LABlab(21.53, 44.73, -60.45)
CIE-LCHlch(21.53, 75.20, 306.50°)
OKLaboklab(34.37% 0.0346 -0.1744)
OKLCHoklch(34.37% 0.178 281.2)
XYZxyz(6.6955, 3.3865, 26.6810)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321990 #779019
analogous
#193B90 #321990 #6D1990
triadic
#321990 #903219 #199032
tetradic
#321990 #90193B #779019 #19906D
square
#321990 #90193B #779019 #19906D
split-complementary
#321990 #906D19 #3B9019
monochromatic
#0E0728 #20105C #321990 #4422C4 #6545DF

Accessibility & contrast

On white

12.52
#321990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#321990 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321990
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321990#FFFFFF#000000##FFFFFF
##3219901.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#002F8E
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #321990;
/* rgb */ color: rgb(50, 25, 144);
/* oklch */ color: oklch(34.4% 0.178 281.2);
Tailwind
colors: {
  custom: {
    50: '#785bb2',
    500: '#321990',
    950: '#000000',
  },
}
SCSS
$custom: #321990;
$custom-light: #785bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#321990",
  "rgb": {
    "r": 50,
    "g": 25,
    "b": 144
  },
  "hsl": {
    "h": 252.605,
    "s": 70.414,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34374,
    "c": 0.17784,
    "h": 281.2
  },
  "luminance": 0.03387
}

Semantic roles & 50–950 ramp

primary
#321990
secondary
#A6C045
accent
#ED3BC8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321990

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

Preview Lab → · Contrast checker → · Palette generator →

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