#321D91#321D91

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

Color values

HEX#321D91
RGBrgb(50, 29, 145)
HSLhsl(251, 67%, 34%)
HSVhsv(251, 80%, 57%)
CMYKcmyk(65.5%, 80%, 0%, 43.1%)
CIE-LABlab(22.30, 43.11, -59.79)
CIE-LCHlch(22.30, 73.71, 305.79°)
OKLaboklab(34.95% 0.0321 -0.1726)
OKLCHoklch(34.95% 0.176 280.5)
XYZxyz(6.8640, 3.6006, 27.1159)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D91 #7C911D
analogous
#1D4291 #321D91 #6C1D91
triadic
#321D91 #91321D #1D9132
tetradic
#321D91 #911D42 #7C911D #1D916C
square
#321D91 #911D42 #7C911D #1D916C
split-complementary
#321D91 #916C1D #42911D
monochromatic
#0F092B #20135E #321D91 #4427C4 #674DDB

Accessibility & contrast

On white

12.21
#321D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#321D91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D91
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D91#FFFFFF#000000##FFFFFF
##321D911.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003994
Deuteranopia (green-blind)
#00318F
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #321d91;
/* rgb */ color: rgb(50, 29, 145);
/* oklch */ color: oklch(34.9% 0.176 280.5);
Tailwind
colors: {
  custom: {
    50: '#785db2',
    500: '#321d91',
    950: '#000000',
  },
}
SCSS
$custom: #321d91;
$custom-light: #785db2;
$custom-dark: #000000;
JSON
{
  "hex": "#321d91",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 145
  },
  "hsl": {
    "h": 250.862,
    "s": 66.667,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34945,
    "c": 0.17553,
    "h": 280.5
  },
  "luminance": 0.03601
}

Semantic roles & 50–950 ramp

primary
#321D91
secondary
#A9BE4C
accent
#EA3ECB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321D91

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

Preview Lab → · Contrast checker → · Palette generator →

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