#321882#321882

#321882 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.162 H 284.2°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#321882
RGBrgb(50, 24, 130)
HSLhsl(255, 69%, 30%)
HSVhsv(255, 82%, 51%)
CMYKcmyk(61.5%, 81.5%, 0%, 49%)
CIE-LABlab(19.81, 41.00, -54.51)
CIE-LCHlch(19.81, 68.21, 306.95°)
OKLaboklab(32.72% 0.0398 -0.1571)
OKLCHoklch(32.72% 0.162 284.2)
XYZxyz(5.6701, 2.9427, 21.3840)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321882 #688218
analogous
#183382 #321882 #671882
triadic
#321882 #823218 #188232
tetradic
#321882 #821833 #688218 #188267
square
#321882 #821833 #688218 #188267
split-complementary
#321882 #826718 #338218
monochromatic
#0A051B #1E0E4E #321882 #4622B6 #613ADB

Accessibility & contrast

On white

13.22
#321882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321882
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321882#FFFFFF#000000##FFFFFF
##3218821.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321882;
/* rgb */ color: rgb(50, 24, 130);
/* oklch */ color: oklch(32.7% 0.162 284.2);
Tailwind
colors: {
  custom: {
    50: '#7559a7',
    500: '#321882',
    950: '#000000',
  },
}
SCSS
$custom: #321882;
$custom-light: #7559a7;
$custom-dark: #000000;
JSON
{
  "hex": "#321882",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 130
  },
  "hsl": {
    "h": 254.717,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32724,
    "c": 0.16207,
    "h": 284.2
  },
  "luminance": 0.02943
}

Semantic roles & 50–950 ramp

primary
#321882
secondary
#99B640
accent
#EC3CC1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321882

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

Preview Lab → · Contrast checker → · Palette generator →

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