#321771#321771

#321771 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.142 H 288.8°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#321771
RGBrgb(50, 23, 113)
HSLhsl(258, 66%, 27%)
HSVhsv(258, 80%, 44%)
CMYKcmyk(55.8%, 79.6%, 0%, 55.7%)
CIE-LABlab(17.84, 36.37, -46.88)
CIE-LCHlch(17.84, 59.33, 307.80°)
OKLaboklab(30.81% 0.0458 -0.1348)
OKLCHoklch(30.81% 0.142 288.8)
XYZxyz(4.6016, 2.4829, 15.8564)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321771 #567117
analogous
#172971 #321771 #5F1771
triadic
#321771 #713217 #177132
tetradic
#321771 #711729 #567117 #17715F
square
#321771 #711729 #567117 #17715F
split-complementary
#321771 #715F17 #297117
monochromatic
#0B0519 #1C0D3E #321771 #4921A4 #602ED4

Accessibility & contrast

On white

14.03
#321771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#321771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321771
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321771#FFFFFF#000000##FFFFFF
##3217711.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#193043
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #321771;
/* rgb */ color: rgb(50, 23, 113);
/* oklch */ color: oklch(30.8% 0.142 288.8);
Tailwind
colors: {
  custom: {
    50: '#72579b',
    500: '#321771',
    950: '#000000',
  },
}
SCSS
$custom: #321771;
$custom-light: #72579b;
$custom-dark: #000000;
JSON
{
  "hex": "#321771",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 258,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30808,
    "c": 0.14238,
    "h": 288.8
  },
  "luminance": 0.02483
}

Semantic roles & 50–950 ramp

primary
#321771
secondary
#87A73D
accent
#E93FB6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #321771

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

Preview Lab → · Contrast checker → · Palette generator →

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