#321F6E#321F6E

#321F6E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.6% C 0.129 H 287.7°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#321F6E
RGBrgb(50, 31, 110)
HSLhsl(254, 56%, 28%)
HSVhsv(254, 72%, 43%)
CMYKcmyk(54.5%, 71.8%, 0%, 56.9%)
CIE-LABlab(19.16, 30.93, -42.78)
CIE-LCHlch(19.16, 52.79, 305.87°)
OKLaboklab(31.65% 0.0392 -0.1228)
OKLCHoklch(31.65% 0.129 287.7)
XYZxyz(4.6190, 2.7836, 15.0427)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F6E #5B6E1F
analogous
#1F346E #321F6E #591F6E
triadic
#321F6E #6E321F #1F6E32
tetradic
#321F6E #6E1F34 #5B6E1F #1F6E59
square
#321F6E #6E1F34 #5B6E1F #1F6E59
split-complementary
#321F6E #6E591F #346E1F
monochromatic
#0B0718 #1C123E #321F6E #482C9E #603FC9

Accessibility & contrast

On white

13.49
#321F6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321F6E
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F6E#FFFFFF#000000##FFFFFF
##321F6E1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#002C6C
Tritanopia (blue-blind)
#1B3344
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321f6e;
/* rgb */ color: rgb(50, 31, 110);
/* oklch */ color: oklch(31.6% 0.129 287.7);
Tailwind
colors: {
  custom: {
    50: '#715c98',
    500: '#321f6e',
    950: '#000000',
  },
}
SCSS
$custom: #321f6e;
$custom-light: #715c98;
$custom-dark: #000000;
JSON
{
  "hex": "#321f6e",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 110
  },
  "hsl": {
    "h": 254.43,
    "s": 56.028,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3165,
    "c": 0.12893,
    "h": 287.7
  },
  "luminance": 0.02784
}

Semantic roles & 50–950 ramp

primary
#321F6E
secondary
#8CA247
accent
#DF48BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321F6E

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

Preview Lab → · Contrast checker → · Palette generator →

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