#321972#321972

#321972 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.141 H 288.1°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#321972
RGBrgb(50, 25, 114)
HSLhsl(257, 64%, 27%)
HSVhsv(257, 78%, 45%)
CMYKcmyk(56.1%, 78.1%, 0%, 55.3%)
CIE-LABlab(18.31, 35.62, -46.75)
CIE-LCHlch(18.31, 58.77, 307.30°)
OKLaboklab(31.17% 0.0439 -0.1344)
OKLCHoklch(31.17% 0.141 288.1)
XYZxyz(4.6994, 2.5880, 16.1682)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321972 #597219
analogous
#192C72 #321972 #5F1972
triadic
#321972 #723219 #197232
tetradic
#321972 #72192C #597219 #19725F
square
#321972 #72192C #597219 #19725F
split-complementary
#321972 #725F19 #2C7219
monochromatic
#0B0619 #1C0E40 #321972 #4824A4 #6033D2

Accessibility & contrast

On white

13.84
#321972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#321972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321972
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321972#FFFFFF#000000##FFFFFF
##3219721.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#183244
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #321972;
/* rgb */ color: rgb(50, 25, 114);
/* oklch */ color: oklch(31.2% 0.141 288.1);
Tailwind
colors: {
  custom: {
    50: '#72599b',
    500: '#321972',
    950: '#000000',
  },
}
SCSS
$custom: #321972;
$custom-light: #72599b;
$custom-dark: #000000;
JSON
{
  "hex": "#321972",
  "rgb": {
    "r": 50,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 256.854,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31169,
    "c": 0.14143,
    "h": 288.1
  },
  "luminance": 0.02588
}

Semantic roles & 50–950 ramp

primary
#321972
secondary
#8AA740
accent
#E741B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #321972

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

Preview Lab → · Contrast checker → · Palette generator →

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