#321D5F#321D5F

#321D5F is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.0% C 0.111 H 293.1°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#321D5F
RGBrgb(50, 29, 95)
HSLhsl(259, 53%, 24%)
HSVhsv(259, 69%, 37%)
CMYKcmyk(47.4%, 69.5%, 0%, 62.7%)
CIE-LABlab(17.38, 27.38, -35.83)
CIE-LCHlch(17.38, 45.09, 307.39°)
OKLaboklab(29.96% 0.0437 -0.1024)
OKLCHoklch(29.96% 0.111 293.1)
XYZxyz(3.8198, 2.3830, 11.0830)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D5F #4A5F1D
analogous
#1D295F #321D5F #531D5F
triadic
#321D5F #5F321D #1D5F32
tetradic
#321D5F #5F1D29 #4A5F1D #1D5F53
square
#321D5F #5F1D29 #4A5F1D #1D5F53
split-complementary
#321D5F #5F531D #295F1D
monochromatic
#0C0717 #190F30 #321D5F #4B2B8E #633ABD

Accessibility & contrast

On white

14.22
#321D5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#321D5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D5F
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D5F#FFFFFF#000000##FFFFFF
##321D5F1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B61
Deuteranopia (green-blind)
#00295E
Tritanopia (blue-blind)
#252D3B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #321d5f;
/* rgb */ color: rgb(50, 29, 95);
/* oklch */ color: oklch(30.0% 0.111 293.1);
Tailwind
colors: {
  custom: {
    50: '#6e5a8d',
    500: '#321d5f',
    950: '#000000',
  },
}
SCSS
$custom: #321d5f;
$custom-light: #6e5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#321d5f",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 95
  },
  "hsl": {
    "h": 259.091,
    "s": 53.226,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29959,
    "c": 0.11135,
    "h": 293.1
  },
  "luminance": 0.02383
}

Semantic roles & 50–950 ramp

primary
#321D5F
secondary
#7B9444
accent
#DD4BAE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #321D5F

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

Preview Lab → · Contrast checker → · Palette generator →

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