#321985#321985

#321985 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.165 H 283.4°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#321985
RGBrgb(50, 25, 133)
HSLhsl(254, 68%, 31%)
HSVhsv(254, 81%, 52%)
CMYKcmyk(62.4%, 81.2%, 0%, 47.8%)
CIE-LABlab(20.31, 41.42, -55.58)
CIE-LCHlch(20.31, 69.32, 306.69°)
OKLaboklab(33.17% 0.0382 -0.1603)
OKLCHoklch(33.17% 0.165 283.4)
XYZxyz(5.8954, 3.0664, 22.4670)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321985 #6C8519
analogous
#193685 #321985 #681985
triadic
#321985 #853219 #198532
tetradic
#321985 #851936 #6C8519 #198568
square
#321985 #851936 #6C8519 #198568
split-complementary
#321985 #856819 #368519
monochromatic
#0B061E #1F0F51 #321985 #4523B9 #623EDB

Accessibility & contrast

On white

13.02
#321985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#321985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321985
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321985#FFFFFF#000000##FFFFFF
##3219851.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002D83
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #321985;
/* rgb */ color: rgb(50, 25, 133);
/* oklch */ color: oklch(33.2% 0.165 283.4);
Tailwind
colors: {
  custom: {
    50: '#765aaa',
    500: '#321985',
    950: '#000000',
  },
}
SCSS
$custom: #321985;
$custom-light: #765aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#321985",
  "rgb": {
    "r": 50,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 253.889,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33165,
    "c": 0.16474,
    "h": 283.4
  },
  "luminance": 0.03067
}

Semantic roles & 50–950 ramp

primary
#321985
secondary
#9DB941
accent
#EB3DC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321985

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

Preview Lab → · Contrast checker → · Palette generator →

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