#321D6A#321D6A

#321D6A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.126 H 289.4°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#321D6A
RGBrgb(50, 29, 106)
HSLhsl(256, 57%, 26%)
HSVhsv(256, 73%, 42%)
CMYKcmyk(52.8%, 72.6%, 0%, 58.4%)
CIE-LABlab(18.35, 30.85, -41.49)
CIE-LCHlch(18.35, 51.70, 306.64°)
OKLaboklab(30.96% 0.042 -0.119)
OKLCHoklch(30.96% 0.126 289.4)
XYZxyz(4.3555, 2.5973, 13.9047)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D6A #556A1D
analogous
#1D2F6A #321D6A #591D6A
triadic
#321D6A #6A321D #1D6A32
tetradic
#321D6A #6A1D2F #556A1D #1D6A59
square
#321D6A #6A1D2F #556A1D #1D6A59
split-complementary
#321D6A #6A591D #2F6A1D
monochromatic
#0B0718 #1B103A #321D6A #492A9A #6039C9

Accessibility & contrast

On white

13.82
#321D6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#321D6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D6A
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D6A#FFFFFF#000000##FFFFFF
##321D6A1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6C
Deuteranopia (green-blind)
#002B68
Tritanopia (blue-blind)
#1E3141
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #321d6a;
/* rgb */ color: rgb(50, 29, 106);
/* oklch */ color: oklch(31.0% 0.126 289.4);
Tailwind
colors: {
  custom: {
    50: '#705b95',
    500: '#321d6a',
    950: '#000000',
  },
}
SCSS
$custom: #321d6a;
$custom-light: #705b95;
$custom-dark: #000000;
JSON
{
  "hex": "#321d6a",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 106
  },
  "hsl": {
    "h": 256.364,
    "s": 57.037,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30962,
    "c": 0.12622,
    "h": 289.4
  },
  "luminance": 0.02597
}

Semantic roles & 50–950 ramp

primary
#321D6A
secondary
#869F44
accent
#E048B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #321D6A

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

Preview Lab → · Contrast checker → · Palette generator →

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