#321A90#321A90

#321A90 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.177 H 281.1°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#321A90
RGBrgb(50, 26, 144)
HSLhsl(252, 69%, 33%)
HSVhsv(252, 82%, 56%)
CMYKcmyk(65.3%, 81.9%, 0%, 43.5%)
CIE-LABlab(21.69, 44.27, -60.18)
CIE-LCHlch(21.69, 74.71, 306.34°)
OKLaboklab(34.49% 0.0341 -0.1737)
OKLCHoklch(34.49% 0.177 281.1)
XYZxyz(6.7172, 3.4300, 26.6882)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A90 #78901A
analogous
#1A3D90 #321A90 #6D1A90
triadic
#321A90 #90321A #1A9032
tetradic
#321A90 #901A3D #78901A #1A906D
square
#321A90 #901A3D #78901A #1A906D
split-complementary
#321A90 #906D1A #3D901A
monochromatic
#0E0728 #20115C #321A90 #4423C4 #6547DE

Accessibility & contrast

On white

12.45
#321A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#321A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A90
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A90#FFFFFF#000000##FFFFFF
##321A901.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#00308E
Tritanopia (blue-blind)
#003E56
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #321a90;
/* rgb */ color: rgb(50, 26, 144);
/* oklch */ color: oklch(34.5% 0.177 281.1);
Tailwind
colors: {
  custom: {
    50: '#785bb2',
    500: '#321a90',
    950: '#000000',
  },
}
SCSS
$custom: #321a90;
$custom-light: #785bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#321a90",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 144
  },
  "hsl": {
    "h": 252.203,
    "s": 69.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34485,
    "c": 0.17699,
    "h": 281.1
  },
  "luminance": 0.03431
}

Semantic roles & 50–950 ramp

primary
#321A90
secondary
#A7BF47
accent
#EC3CC8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321A90

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

Preview Lab → · Contrast checker → · Palette generator →

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