#321971#321971

#321971 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.140 H 288.4°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#321971
RGBrgb(50, 25, 113)
HSLhsl(257, 64%, 27%)
HSVhsv(257, 78%, 44%)
CMYKcmyk(55.8%, 77.9%, 0%, 55.7%)
CIE-LABlab(18.21, 35.31, -46.27)
CIE-LCHlch(18.21, 58.20, 307.35°)
OKLaboklab(31.07% 0.0442 -0.133)
OKLCHoklch(31.07% 0.14 288.4)
XYZxyz(4.6428, 2.5654, 15.8701)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321971 #587119
analogous
#192C71 #321971 #5E1971
triadic
#321971 #713219 #197132
tetradic
#321971 #71192C #587119 #19715E
square
#321971 #71192C #587119 #19715E
split-complementary
#321971 #715E19 #2C7119
monochromatic
#0B0619 #1C0E3F #321971 #4824A3 #6033D2

Accessibility & contrast

On white

13.88
#321971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#321971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321971
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321971#FFFFFF#000000##FFFFFF
##3219711.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#002A6F
Tritanopia (blue-blind)
#193144
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #321971;
/* rgb */ color: rgb(50, 25, 113);
/* oklch */ color: oklch(31.1% 0.140 288.4);
Tailwind
colors: {
  custom: {
    50: '#72599b',
    500: '#321971',
    950: '#000000',
  },
}
SCSS
$custom: #321971;
$custom-light: #72599b;
$custom-dark: #000000;
JSON
{
  "hex": "#321971",
  "rgb": {
    "r": 50,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 257.045,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31068,
    "c": 0.14017,
    "h": 288.4
  },
  "luminance": 0.02566
}

Semantic roles & 50–950 ramp

primary
#321971
secondary
#89A640
accent
#E741B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #321971

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

Preview Lab → · Contrast checker → · Palette generator →

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