#321C95#321C95

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

Color values

HEX#321C95
RGBrgb(50, 28, 149)
HSLhsl(251, 68%, 35%)
HSVhsv(251, 81%, 58%)
CMYKcmyk(66.4%, 81.2%, 0%, 41.6%)
CIE-LABlab(22.58, 44.83, -61.81)
CIE-LCHlch(22.58, 76.36, 305.95°)
OKLaboklab(35.27% 0.0314 -0.1784)
OKLCHoklch(35.27% 0.181 280)
XYZxyz(7.1537, 3.6780, 28.7609)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C95 #7F951C
analogous
#1C4395 #321C95 #6F1C95
triadic
#321C95 #95321C #1C9532
tetradic
#321C95 #951C43 #7F951C #1C956F
square
#321C95 #951C43 #7F951C #1C956F
split-complementary
#321C95 #956F1C #43951C
monochromatic
#0F092E #211261 #321C95 #4326C9 #684EDE

Accessibility & contrast

On white

12.10
#321C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321C95
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C95#FFFFFF#000000##FFFFFF
##321C951.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321c95;
/* rgb */ color: rgb(50, 28, 149);
/* oklch */ color: oklch(35.3% 0.181 280.0);
Tailwind
colors: {
  custom: {
    50: '#795cb5',
    500: '#321c95',
    950: '#000000',
  },
}
SCSS
$custom: #321c95;
$custom-light: #795cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#321c95",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 149
  },
  "hsl": {
    "h": 250.909,
    "s": 68.362,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35265,
    "c": 0.1812,
    "h": 280
  },
  "luminance": 0.03679
}

Semantic roles & 50–950 ramp

primary
#321C95
secondary
#ABC04D
accent
#EB3DCB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321C95

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

Preview Lab → · Contrast checker → · Palette generator →

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