#321885#321885

#321885 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.166 H 283.5°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#321885
RGBrgb(50, 24, 133)
HSLhsl(254, 69%, 31%)
HSVhsv(254, 82%, 52%)
CMYKcmyk(62.4%, 82%, 0%, 47.8%)
CIE-LABlab(20.14, 41.91, -55.86)
CIE-LCHlch(20.14, 69.83, 306.88°)
OKLaboklab(33.05% 0.0388 -0.161)
OKLCHoklch(33.05% 0.166 283.5)
XYZxyz(5.8744, 3.0244, 22.4600)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321885 #6B8518
analogous
#183485 #321885 #681885
triadic
#321885 #853218 #188532
tetradic
#321885 #851834 #6B8518 #188568
square
#321885 #851834 #6B8518 #188568
split-complementary
#321885 #856818 #348518
monochromatic
#0B051D #1F0F51 #321885 #4521B9 #623CDC

Accessibility & contrast

On white

13.08
#321885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321885
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321885#FFFFFF#000000##FFFFFF
##3218851.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.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: #321885;
/* rgb */ color: rgb(50, 24, 133);
/* oklch */ color: oklch(33.1% 0.166 283.5);
Tailwind
colors: {
  custom: {
    50: '#7659aa',
    500: '#321885',
    950: '#000000',
  },
}
SCSS
$custom: #321885;
$custom-light: #7659aa;
$custom-dark: #000000;
JSON
{
  "hex": "#321885",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 254.312,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3305,
    "c": 0.16566,
    "h": 283.5
  },
  "luminance": 0.03025
}

Semantic roles & 50–950 ramp

primary
#321885
secondary
#9CB940
accent
#EC3CC2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321885

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

Preview Lab → · Contrast checker → · Palette generator →

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