#321E91#321E91

#321E91 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.175 H 280.4°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#321E91
RGBrgb(50, 30, 145)
HSLhsl(250, 66%, 34%)
HSVhsv(250, 79%, 57%)
CMYKcmyk(65.5%, 79.3%, 0%, 43.1%)
CIE-LABlab(22.48, 42.60, -59.50)
CIE-LCHlch(22.48, 73.18, 305.61°)
OKLaboklab(35.07% 0.0315 -0.1717)
OKLCHoklch(35.07% 0.175 280.4)
XYZxyz(6.8889, 3.6505, 27.1242)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E91 #7D911E
analogous
#1E4491 #321E91 #6C1E91
triadic
#321E91 #91321E #1E9132
tetradic
#321E91 #911E44 #7D911E #1E916C
square
#321E91 #911E44 #7D911E #1E916C
split-complementary
#321E91 #916C1E #44911E
monochromatic
#0F092C #21145E #321E91 #4328C4 #674FDB

Accessibility & contrast

On white

12.14
#321E91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#321E91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E91
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E91#FFFFFF#000000##FFFFFF
##321E911.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A94
Deuteranopia (green-blind)
#00318F
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #321e91;
/* rgb */ color: rgb(50, 30, 145);
/* oklch */ color: oklch(35.1% 0.175 280.4);
Tailwind
colors: {
  custom: {
    50: '#785db2',
    500: '#321e91',
    950: '#000000',
  },
}
SCSS
$custom: #321e91;
$custom-light: #785db2;
$custom-dark: #000000;
JSON
{
  "hex": "#321e91",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 145
  },
  "hsl": {
    "h": 250.435,
    "s": 65.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35068,
    "c": 0.1746,
    "h": 280.4
  },
  "luminance": 0.03651
}

Semantic roles & 50–950 ramp

primary
#321E91
secondary
#AABD4D
accent
#E93FCB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321E91

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

Preview Lab → · Contrast checker → · Palette generator →

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