#321E94#321E94

#321E94 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.178 H 279.9°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#321E94
RGBrgb(50, 30, 148)
HSLhsl(250, 66%, 35%)
HSVhsv(250, 80%, 58%)
CMYKcmyk(66.2%, 79.7%, 0%, 42%)
CIE-LABlab(22.81, 43.53, -60.81)
CIE-LCHlch(22.81, 74.79, 305.60°)
OKLaboklab(35.39% 0.0306 -0.1756)
OKLCHoklch(35.39% 0.178 279.9)
XYZxyz(7.1233, 3.7442, 28.3586)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E94 #80941E
analogous
#1E4594 #321E94 #6D1E94
triadic
#321E94 #94321E #1E9432
tetradic
#321E94 #941E45 #80941E #1E946D
square
#321E94 #941E45 #80941E #1E946D
split-complementary
#321E94 #946D1E #45941E
monochromatic
#10092E #211461 #321E94 #4328C7 #6851DC

Accessibility & contrast

On white

12.01
#321E94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#321E94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E94
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E94#FFFFFF#000000##FFFFFF
##321E941.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B97
Deuteranopia (green-blind)
#003292
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #321e94;
/* rgb */ color: rgb(50, 30, 148);
/* oklch */ color: oklch(35.4% 0.178 279.9);
Tailwind
colors: {
  custom: {
    50: '#785db5',
    500: '#321e94',
    950: '#000000',
  },
}
SCSS
$custom: #321e94;
$custom-light: #785db5;
$custom-dark: #000000;
JSON
{
  "hex": "#321e94",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 148
  },
  "hsl": {
    "h": 250.169,
    "s": 66.292,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35393,
    "c": 0.17822,
    "h": 279.9
  },
  "luminance": 0.03745
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #321E94

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

Preview Lab → · Contrast checker → · Palette generator →

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