#321D5C#321D5C

#321D5C is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.7% C 0.107 H 294.3°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#321D5C
RGBrgb(50, 29, 92)
HSLhsl(260, 52%, 24%)
HSVhsv(260, 68%, 36%)
CMYKcmyk(45.7%, 68.5%, 0%, 63.9%)
CIE-LABlab(17.13, 26.44, -34.24)
CIE-LCHlch(17.13, 43.26, 307.68°)
OKLaboklab(29.7% 0.0441 -0.0977)
OKLCHoklch(29.7% 0.107 294.3)
XYZxyz(3.6860, 2.3295, 10.3786)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D5C #475C1D
analogous
#1D275C #321D5C #511D5C
triadic
#321D5C #5C321D #1D5C32
tetradic
#321D5C #5C1D27 #475C1D #1D5C51
square
#321D5C #5C1D27 #475C1D #1D5C51
split-complementary
#321D5C #5C511D #275C1D
monochromatic
#0D0717 #190E2D #321D5C #4B2C8B #653AB9

Accessibility & contrast

On white

14.32
#321D5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#321D5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D5C
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D5C#FFFFFF#000000##FFFFFF
##321D5C1.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5E
Deuteranopia (green-blind)
#00295B
Tritanopia (blue-blind)
#272C39
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321d5c;
/* rgb */ color: rgb(50, 29, 92);
/* oklch */ color: oklch(29.7% 0.107 294.3);
Tailwind
colors: {
  custom: {
    50: '#6e5a8b',
    500: '#321d5c',
    950: '#000000',
  },
}
SCSS
$custom: #321d5c;
$custom-light: #6e5a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#321d5c",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 92
  },
  "hsl": {
    "h": 260,
    "s": 52.066,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29698,
    "c": 0.10721,
    "h": 294.3
  },
  "luminance": 0.0233
}

Semantic roles & 50–950 ramp

primary
#321D5C
secondary
#779144
accent
#DC4CAC
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #321D5C

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

Preview Lab → · Contrast checker → · Palette generator →

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