#321E96#321E96

#321E96 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.181 H 279.6°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#321E96
RGBrgb(50, 30, 150)
HSLhsl(250, 67%, 35%)
HSVhsv(250, 80%, 59%)
CMYKcmyk(66.7%, 80%, 0%, 41.2%)
CIE-LABlab(23.03, 44.15, -61.69)
CIE-LCHlch(23.03, 75.86, 305.59°)
OKLaboklab(35.61% 0.0301 -0.1781)
OKLCHoklch(35.61% 0.181 279.6)
XYZxyz(7.2829, 3.8081, 29.1995)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E96 #82961E
analogous
#1E4696 #321E96 #6E1E96
triadic
#321E96 #96321E #1E9632
tetradic
#321E96 #961E46 #82961E #1E966E
square
#321E96 #961E46 #82961E #1E966E
split-complementary
#321E96 #966E1E #46961E
monochromatic
#100A30 #211463 #321E96 #4328C9 #6952DC

Accessibility & contrast

On white

11.92
#321E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#321E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E96
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E96#FFFFFF#000000##FFFFFF
##321E961.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003294
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #321e96;
/* rgb */ color: rgb(50, 30, 150);
/* oklch */ color: oklch(35.6% 0.181 279.6);
Tailwind
colors: {
  custom: {
    50: '#795eb6',
    500: '#321e96',
    950: '#000000',
  },
}
SCSS
$custom: #321e96;
$custom-light: #795eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#321e96",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 250,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35611,
    "c": 0.18063,
    "h": 279.6
  },
  "luminance": 0.03809
}

Semantic roles & 50–950 ramp

primary
#321E96
secondary
#ADBF50
accent
#EA3ECD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321E96

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

Preview Lab → · Contrast checker → · Palette generator →

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