#321880#321880

#321880 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.160 H 284.7°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#321880
RGBrgb(50, 24, 128)
HSLhsl(255, 68%, 30%)
HSVhsv(255, 81%, 50%)
CMYKcmyk(60.9%, 81.3%, 0%, 49.8%)
CIE-LABlab(19.60, 40.40, -53.60)
CIE-LCHlch(19.60, 67.12, 307.01°)
OKLaboklab(32.51% 0.0404 -0.1545)
OKLCHoklch(32.51% 0.16 284.7)
XYZxyz(5.5371, 2.8895, 20.6838)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321880 #668018
analogous
#183280 #321880 #661880
triadic
#321880 #803218 #188032
tetradic
#321880 #801832 #668018 #188066
square
#321880 #801832 #668018 #188066
split-complementary
#321880 #806618 #328018
monochromatic
#0A051A #1E0E4C #321880 #4622B4 #6139DA

Accessibility & contrast

On white

13.31
#321880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#321880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321880
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321880#FFFFFF#000000##FFFFFF
##3218801.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002C7E
Tritanopia (blue-blind)
#02374C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #321880;
/* rgb */ color: rgb(50, 24, 128);
/* oklch */ color: oklch(32.5% 0.160 284.7);
Tailwind
colors: {
  custom: {
    50: '#7559a6',
    500: '#321880',
    950: '#000000',
  },
}
SCSS
$custom: #321880;
$custom-light: #7559a6;
$custom-dark: #000000;
JSON
{
  "hex": "#321880",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 255,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32508,
    "c": 0.15966,
    "h": 284.7
  },
  "luminance": 0.0289
}

Semantic roles & 50–950 ramp

primary
#321880
secondary
#97B440
accent
#EB3DC0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321880

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

Preview Lab → · Contrast checker → · Palette generator →

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