#321F6F#321F6F

#321F6F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.7% C 0.130 H 287.4°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#321F6F
RGBrgb(50, 31, 111)
HSLhsl(254, 56%, 28%)
HSVhsv(254, 72%, 44%)
CMYKcmyk(55%, 72.1%, 0%, 56.5%)
CIE-LABlab(19.25, 31.25, -43.28)
CIE-LCHlch(19.25, 53.38, 305.83°)
OKLaboklab(31.74% 0.039 -0.1243)
OKLCHoklch(31.74% 0.13 287.4)
XYZxyz(4.6738, 2.8055, 15.3311)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F6F #5C6F1F
analogous
#1F346F #321F6F #5A1F6F
triadic
#321F6F #6F321F #1F6F32
tetradic
#321F6F #6F1F34 #5C6F1F #1F6F5A
square
#321F6F #6F1F34 #5C6F1F #1F6F5A
split-complementary
#321F6F #6F5A1F #346F1F
monochromatic
#0B0718 #1C123F #321F6F #482C9F #603FC9

Accessibility & contrast

On white

13.45
#321F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#321F6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F6F
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F6F#FFFFFF#000000##FFFFFF
##321F6F1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#1A3344
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #321f6f;
/* rgb */ color: rgb(50, 31, 111);
/* oklch */ color: oklch(31.7% 0.130 287.4);
Tailwind
colors: {
  custom: {
    50: '#715c99',
    500: '#321f6f',
    950: '#000000',
  },
}
SCSS
$custom: #321f6f;
$custom-light: #715c99;
$custom-dark: #000000;
JSON
{
  "hex": "#321f6f",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 111
  },
  "hsl": {
    "h": 254.25,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31744,
    "c": 0.13027,
    "h": 287.4
  },
  "luminance": 0.02806
}

Semantic roles & 50–950 ramp

primary
#321F6F
secondary
#8DA347
accent
#E048BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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