#321C94#321C94

#321C94 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.180 H 280.2°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#321C94
RGBrgb(50, 28, 148)
HSLhsl(251, 68%, 35%)
HSVhsv(251, 81%, 58%)
CMYKcmyk(66.2%, 81.1%, 0%, 42%)
CIE-LABlab(22.47, 44.52, -61.38)
CIE-LCHlch(22.47, 75.83, 305.96°)
OKLaboklab(35.15% 0.0317 -0.1772)
OKLCHoklch(35.15% 0.18 280.2)
XYZxyz(7.0742, 3.6462, 28.3422)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C94 #7E941C
analogous
#1C4294 #321C94 #6E1C94
triadic
#321C94 #94321C #1C9432
tetradic
#321C94 #941C42 #7E941C #1C946E
square
#321C94 #941C42 #7E941C #1C946E
split-complementary
#321C94 #946E1C #42941C
monochromatic
#0F092D #211261 #321C94 #4326C7 #684DDD

Accessibility & contrast

On white

12.14
#321C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#321C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C94
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C94#FFFFFF#000000##FFFFFF
##321C941.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003192
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #321c94;
/* rgb */ color: rgb(50, 28, 148);
/* oklch */ color: oklch(35.2% 0.180 280.2);
Tailwind
colors: {
  custom: {
    50: '#785cb5',
    500: '#321c94',
    950: '#000000',
  },
}
SCSS
$custom: #321c94;
$custom-light: #785cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#321c94",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 148
  },
  "hsl": {
    "h": 251,
    "s": 68.182,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35155,
    "c": 0.18001,
    "h": 280.2
  },
  "luminance": 0.03647
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #321C94

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

Preview Lab → · Contrast checker → · Palette generator →

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