#321D59#321D59

#321D59 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.4% C 0.103 H 295.5°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#321D59
RGBrgb(50, 29, 89)
HSLhsl(261, 51%, 23%)
HSVhsv(261, 67%, 35%)
CMYKcmyk(43.8%, 67.4%, 0%, 65.1%)
CIE-LABlab(16.88, 25.51, -32.63)
CIE-LCHlch(16.88, 41.42, 308.02°)
OKLaboklab(29.44% 0.0443 -0.093)
OKLCHoklch(29.44% 0.103 295.5)
XYZxyz(3.5575, 2.2780, 9.7015)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D59 #44591D
analogous
#1D2659 #321D59 #501D59
triadic
#321D59 #59321D #1D5932
tetradic
#321D59 #591D26 #44591D #1D5950
square
#321D59 #591D26 #44591D #1D5950
split-complementary
#321D59 #59501D #26591D
monochromatic
#0D0817 #180E2B #321D59 #4C2C87 #663BB5

Accessibility & contrast

On white

14.43
#321D59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321D59
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D59#FFFFFF#000000##FFFFFF
##321D591.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321d59;
/* rgb */ color: rgb(50, 29, 89);
/* oklch */ color: oklch(29.4% 0.103 295.5);
Tailwind
colors: {
  custom: {
    50: '#6d5a88',
    500: '#321d59',
    950: '#000000',
  },
}
SCSS
$custom: #321d59;
$custom-light: #6d5a88;
$custom-dark: #000000;
JSON
{
  "hex": "#321d59",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 89
  },
  "hsl": {
    "h": 261,
    "s": 50.847,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29442,
    "c": 0.10303,
    "h": 295.5
  },
  "luminance": 0.02278
}

Semantic roles & 50–950 ramp

primary
#321D59
secondary
#748E44
accent
#DA4DA9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040B
muted
#7A797C

Preview Lab

Preview with #321D59

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

Preview Lab → · Contrast checker → · Palette generator →

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