#321981#321981

#321981 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.160 H 284.3°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#321981
RGBrgb(50, 25, 129)
HSLhsl(254, 68%, 30%)
HSVhsv(254, 81%, 51%)
CMYKcmyk(61.2%, 80.6%, 0%, 49.4%)
CIE-LABlab(19.87, 40.21, -53.77)
CIE-LCHlch(19.87, 67.14, 306.79°)
OKLaboklab(32.74% 0.0394 -0.155)
OKLCHoklch(32.74% 0.16 284.3)
XYZxyz(5.6243, 2.9580, 21.0392)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321981 #688119
analogous
#193481 #321981 #661981
triadic
#321981 #813219 #198132
tetradic
#321981 #811934 #688119 #198166
square
#321981 #811934 #688119 #198166
split-complementary
#321981 #816619 #348119
monochromatic
#0A051A #1E0F4E #321981 #4623B4 #613BD9

Accessibility & contrast

On white

13.19
#321981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#321981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321981
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321981#FFFFFF#000000##FFFFFF
##3219811.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321981;
/* rgb */ color: rgb(50, 25, 129);
/* oklch */ color: oklch(32.7% 0.160 284.3);
Tailwind
colors: {
  custom: {
    50: '#755aa7',
    500: '#321981',
    950: '#000000',
  },
}
SCSS
$custom: #321981;
$custom-light: #755aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#321981",
  "rgb": {
    "r": 50,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 254.423,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32735,
    "c": 0.15992,
    "h": 284.3
  },
  "luminance": 0.02958
}

Semantic roles & 50–950 ramp

primary
#321981
secondary
#99B541
accent
#EA3DC1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321981

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

Preview Lab → · Contrast checker → · Palette generator →

#321981 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva