#321481#321481

#321481 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.164 H 285.0°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#321481
RGBrgb(50, 20, 129)
HSLhsl(257, 73%, 29%)
HSVhsv(257, 84%, 51%)
CMYKcmyk(61.2%, 84.5%, 0%, 49.4%)
CIE-LABlab(19.07, 42.55, -55.10)
CIE-LCHlch(19.07, 69.62, 307.67°)
OKLaboklab(32.18% 0.0426 -0.1588)
OKLCHoklch(32.18% 0.164 285)
XYZxyz(5.5268, 2.7631, 21.0067)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321481 #638114
analogous
#142D81 #321481 #691481
triadic
#321481 #813214 #148132
tetradic
#321481 #81142D #638114 #148169
square
#321481 #81142D #638114 #148169
split-complementary
#321481 #816914 #2D8114
monochromatic
#0A041A #1D0C4C #321481 #471CB6 #6030DF

Accessibility & contrast

On white

13.53
#321481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#321481 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321481
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321481#FFFFFF#000000##FFFFFF
##3214811.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#01364C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321481;
/* rgb */ color: rgb(50, 20, 129);
/* oklch */ color: oklch(32.2% 0.164 285.0);
Tailwind
colors: {
  custom: {
    50: '#7557a7',
    500: '#321481',
    950: '#000000',
  },
}
SCSS
$custom: #321481;
$custom-light: #7557a7;
$custom-dark: #000000;
JSON
{
  "hex": "#321481",
  "rgb": {
    "r": 50,
    "g": 20,
    "b": 129
  },
  "hsl": {
    "h": 256.514,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32176,
    "c": 0.16439,
    "h": 285
  },
  "luminance": 0.02763
}

Semantic roles & 50–950 ramp

primary
#321481
secondary
#94B63B
accent
#F038BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #321481

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

Preview Lab → · Contrast checker → · Palette generator →

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