#321D5A#321D5A

#321D5A is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.5% C 0.104 H 295.1°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#321D5A
RGBrgb(50, 29, 90)
HSLhsl(261, 51%, 23%)
HSVhsv(261, 68%, 35%)
CMYKcmyk(44.4%, 67.8%, 0%, 64.7%)
CIE-LABlab(16.96, 25.82, -33.17)
CIE-LCHlch(16.96, 42.04, 307.90°)
OKLaboklab(29.53% 0.0443 -0.0946)
OKLCHoklch(29.53% 0.104 295.1)
XYZxyz(3.5997, 2.2949, 9.9242)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D5A #455A1D
analogous
#1D265A #321D5A #501D5A
triadic
#321D5A #5A321D #1D5A32
tetradic
#321D5A #5A1D26 #455A1D #1D5A50
square
#321D5A #5A1D26 #455A1D #1D5A50
split-complementary
#321D5A #5A501D #265A1D
monochromatic
#0D0717 #180E2C #321D5A #4C2C88 #653BB7

Accessibility & contrast

On white

14.39
#321D5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#321D5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D5A
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D5A#FFFFFF#000000##FFFFFF
##321D5A1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5C
Deuteranopia (green-blind)
#002959
Tritanopia (blue-blind)
#282B38
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321d5a;
/* rgb */ color: rgb(50, 29, 90);
/* oklch */ color: oklch(29.5% 0.104 295.1);
Tailwind
colors: {
  custom: {
    50: '#6e5a89',
    500: '#321d5a',
    950: '#000000',
  },
}
SCSS
$custom: #321d5a;
$custom-light: #6e5a89;
$custom-dark: #000000;
JSON
{
  "hex": "#321d5a",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 90
  },
  "hsl": {
    "h": 260.656,
    "s": 51.261,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29527,
    "c": 0.10443,
    "h": 295.1
  },
  "luminance": 0.02295
}

Semantic roles & 50–950 ramp

primary
#321D5A
secondary
#758F44
accent
#DB4DAA
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040B
muted
#7A797C

Preview Lab

Preview with #321D5A

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

Preview Lab → · Contrast checker → · Palette generator →

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