#321E6D#321E6D

#321E6D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.129 H 288.3°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#321E6D
RGBrgb(50, 30, 109)
HSLhsl(255, 57%, 27%)
HSVhsv(255, 72%, 43%)
CMYKcmyk(54.1%, 72.5%, 0%, 57.3%)
CIE-LABlab(18.85, 31.21, -42.64)
CIE-LCHlch(18.85, 52.84, 306.20°)
OKLaboklab(31.4% 0.0404 -0.1224)
OKLCHoklch(31.4% 0.129 288.3)
XYZxyz(4.5392, 2.7106, 14.7490)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E6D #596D1E
analogous
#1E316D #321E6D #5A1E6D
triadic
#321E6D #6D321E #1E6D32
tetradic
#321E6D #6D1E31 #596D1E #1E6D5A
square
#321E6D #6D1E31 #596D1E #1E6D5A
split-complementary
#321E6D #6D5A1E #316D1E
monochromatic
#0B0718 #1C113D #321E6D #482B9D #603CC9

Accessibility & contrast

On white

13.62
#321E6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#321E6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E6D
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E6D#FFFFFF#000000##FFFFFF
##321E6D1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#1C3243
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321e6d;
/* rgb */ color: rgb(50, 30, 109);
/* oklch */ color: oklch(31.4% 0.129 288.3);
Tailwind
colors: {
  custom: {
    50: '#715b98',
    500: '#321e6d',
    950: '#000000',
  },
}
SCSS
$custom: #321e6d;
$custom-light: #715b98;
$custom-dark: #000000;
JSON
{
  "hex": "#321e6d",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 109
  },
  "hsl": {
    "h": 255.19,
    "s": 56.835,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31399,
    "c": 0.1289,
    "h": 288.3
  },
  "luminance": 0.02711
}

Semantic roles & 50–950 ramp

primary
#321E6D
secondary
#8AA145
accent
#E048BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321E6D

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

Preview Lab → · Contrast checker → · Palette generator →

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