#321E93#321E93

#321E93 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.177 H 280.1°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#321E93
RGBrgb(50, 30, 147)
HSLhsl(250, 66%, 35%)
HSVhsv(250, 80%, 58%)
CMYKcmyk(66%, 79.6%, 0%, 42.4%)
CIE-LABlab(22.70, 43.22, -60.38)
CIE-LCHlch(22.70, 74.25, 305.60°)
OKLaboklab(35.28% 0.0309 -0.1743)
OKLCHoklch(35.28% 0.177 280.1)
XYZxyz(7.0445, 3.7127, 27.9435)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E93 #7F931E
analogous
#1E4593 #321E93 #6C1E93
triadic
#321E93 #93321E #1E9332
tetradic
#321E93 #931E45 #7F931E #1E936C
square
#321E93 #931E45 #7F931E #1E936C
split-complementary
#321E93 #936C1E #45931E
monochromatic
#0F092D #211460 #321E93 #4328C6 #6850DB

Accessibility & contrast

On white

12.05
#321E93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#321E93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E93
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E93#FFFFFF#000000##FFFFFF
##321E931.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A96
Deuteranopia (green-blind)
#003291
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #321e93;
/* rgb */ color: rgb(50, 30, 147);
/* oklch */ color: oklch(35.3% 0.177 280.1);
Tailwind
colors: {
  custom: {
    50: '#785db4',
    500: '#321e93',
    950: '#000000',
  },
}
SCSS
$custom: #321e93;
$custom-light: #785db4;
$custom-dark: #000000;
JSON
{
  "hex": "#321e93",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 147
  },
  "hsl": {
    "h": 250.256,
    "s": 66.102,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35284,
    "c": 0.17702,
    "h": 280.1
  },
  "luminance": 0.03713
}

Semantic roles & 50–950 ramp

primary
#321E93
secondary
#ABBE4F
accent
#E93FCC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321E93

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

Preview Lab → · Contrast checker → · Palette generator →

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