#321F72#321F72

#321F72 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.0% C 0.134 H 286.6°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#321F72
RGBrgb(50, 31, 114)
HSLhsl(254, 57%, 28%)
HSVhsv(254, 73%, 45%)
CMYKcmyk(56.1%, 72.8%, 0%, 55.3%)
CIE-LABlab(19.53, 32.22, -44.76)
CIE-LCHlch(19.53, 55.15, 305.75°)
OKLaboklab(32.03% 0.0384 -0.1286)
OKLCHoklch(32.03% 0.134 286.6)
XYZxyz(4.8417, 2.8727, 16.2157)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F72 #5F721F
analogous
#1F3572 #321F72 #5B1F72
triadic
#321F72 #72321F #1F7232
tetradic
#321F72 #721F35 #5F721F #1F725B
square
#321F72 #721F35 #5F721F #1F725B
split-complementary
#321F72 #725B1F #35721F
monochromatic
#0B0718 #1D1242 #321F72 #472CA2 #6040CB

Accessibility & contrast

On white

13.34
#321F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#321F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F72
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F72#FFFFFF#000000##FFFFFF
##321F721.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#183546
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #321f72;
/* rgb */ color: rgb(50, 31, 114);
/* oklch */ color: oklch(32.0% 0.134 286.6);
Tailwind
colors: {
  custom: {
    50: '#715c9b',
    500: '#321f72',
    950: '#000000',
  },
}
SCSS
$custom: #321f72;
$custom-light: #715c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#321f72",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 253.735,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3203,
    "c": 0.13426,
    "h": 286.6
  },
  "luminance": 0.02873
}

Semantic roles & 50–950 ramp

primary
#321F72
secondary
#90A647
accent
#E047BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321F72

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

Preview Lab → · Contrast checker → · Palette generator →

#321F72 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva