#321E79#321E79

#321E79 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.145 H 285.2°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#321E79
RGBrgb(50, 30, 121)
HSLhsl(253, 60%, 30%)
HSVhsv(253, 75%, 47%)
CMYKcmyk(58.7%, 75.2%, 0%, 52.5%)
CIE-LABlab(19.99, 35.04, -48.49)
CIE-LCHlch(19.99, 59.83, 305.85°)
OKLaboklab(32.57% 0.0378 -0.1396)
OKLCHoklch(32.57% 0.145 285.2)
XYZxyz(5.2298, 2.9868, 18.3864)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E79 #65791E
analogous
#1E3779 #321E79 #601E79
triadic
#321E79 #79321E #1E7932
tetradic
#321E79 #791E37 #65791E #1E7960
square
#321E79 #791E37 #65791E #1E7960
split-complementary
#321E79 #79601E #37791E
monochromatic
#0A0619 #1E1248 #321E79 #462AAA #6141D0

Accessibility & contrast

On white

13.15
#321E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#321E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E79
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E79#FFFFFF#000000##FFFFFF
##321E791.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#0F3749
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321e79;
/* rgb */ color: rgb(50, 30, 121);
/* oklch */ color: oklch(32.6% 0.145 285.2);
Tailwind
colors: {
  custom: {
    50: '#735ca1',
    500: '#321e79',
    950: '#000000',
  },
}
SCSS
$custom: #321e79;
$custom-light: #735ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#321e79",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 121
  },
  "hsl": {
    "h": 253.187,
    "s": 60.265,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32567,
    "c": 0.14462,
    "h": 285.2
  },
  "luminance": 0.02987
}

Semantic roles & 50–950 ramp

primary
#321E79
secondary
#96AD46
accent
#E344C0
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321E79

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

Preview Lab → · Contrast checker → · Palette generator →

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