#321D98#321D98

#321D98 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.184 H 279.4°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#321D98
RGBrgb(50, 29, 152)
HSLhsl(250, 68%, 35%)
HSVhsv(250, 81%, 60%)
CMYKcmyk(67.1%, 80.9%, 0%, 40.4%)
CIE-LABlab(23.08, 45.26, -62.83)
CIE-LCHlch(23.08, 77.44, 305.76°)
OKLaboklab(35.71% 0.03 -0.1814)
OKLCHoklch(35.71% 0.184 279.4)
XYZxyz(7.4204, 3.8232, 30.0466)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D98 #83981D
analogous
#1D4598 #321D98 #6F1D98
triadic
#321D98 #98321D #1D9832
tetradic
#321D98 #981D45 #83981D #1D986F
square
#321D98 #981D45 #83981D #1D986F
split-complementary
#321D98 #986F1D #45981D
monochromatic
#100931 #211365 #321D98 #4327CB #6952DE

Accessibility & contrast

On white

11.90
#321D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321D98
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D98#FFFFFF#000000##FFFFFF
##321D981.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003296
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #321d98;
/* rgb */ color: rgb(50, 29, 152);
/* oklch */ color: oklch(35.7% 0.184 279.4);
Tailwind
colors: {
  custom: {
    50: '#795db8',
    500: '#321d98',
    950: '#000000',
  },
}
SCSS
$custom: #321d98;
$custom-light: #795db8;
$custom-dark: #000000;
JSON
{
  "hex": "#321d98",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 250.244,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35712,
    "c": 0.18389,
    "h": 279.4
  },
  "luminance": 0.03824
}

Semantic roles & 50–950 ramp

primary
#321D98
secondary
#AEC150
accent
#EB3DCD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321D98

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

Preview Lab → · Contrast checker → · Palette generator →

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