#321E95#321E95

#321E95 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.179 H 279.7°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#321E95
RGBrgb(50, 30, 149)
HSLhsl(250, 66%, 35%)
HSVhsv(250, 80%, 58%)
CMYKcmyk(66.4%, 79.9%, 0%, 41.6%)
CIE-LABlab(22.92, 43.84, -61.25)
CIE-LCHlch(22.92, 75.33, 305.60°)
OKLaboklab(35.5% 0.0304 -0.1768)
OKLCHoklch(35.5% 0.179 279.7)
XYZxyz(7.2028, 3.7760, 28.7772)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E95 #81951E
analogous
#1E4695 #321E95 #6D1E95
triadic
#321E95 #95321E #1E9532
tetradic
#321E95 #951E46 #81951E #1E956D
square
#321E95 #951E46 #81951E #1E956D
split-complementary
#321E95 #956D1E #46951E
monochromatic
#10092F #211462 #321E95 #4328C8 #6951DC

Accessibility & contrast

On white

11.96
#321E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321E95
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E95#FFFFFF#000000##FFFFFF
##321E951.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#003293
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #321e95;
/* rgb */ color: rgb(50, 30, 149);
/* oklch */ color: oklch(35.5% 0.179 279.7);
Tailwind
colors: {
  custom: {
    50: '#785eb5',
    500: '#321e95',
    950: '#000000',
  },
}
SCSS
$custom: #321e95;
$custom-light: #785eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#321e95",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 149
  },
  "hsl": {
    "h": 250.084,
    "s": 66.48,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35502,
    "c": 0.17943,
    "h": 279.7
  },
  "luminance": 0.03777
}

Semantic roles & 50–950 ramp

primary
#321E95
secondary
#ACBF50
accent
#E93ECD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321E95

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

Preview Lab → · Contrast checker → · Palette generator →

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