#321D5E#321D5E

#321D5E is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.9% C 0.110 H 293.5°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#321D5E
RGBrgb(50, 29, 94)
HSLhsl(259, 53%, 24%)
HSVhsv(259, 69%, 37%)
CMYKcmyk(46.8%, 69.1%, 0%, 63.1%)
CIE-LABlab(17.30, 27.07, -35.30)
CIE-LCHlch(17.30, 44.49, 307.48°)
OKLaboklab(29.87% 0.0438 -0.1009)
OKLCHoklch(29.87% 0.11 293.5)
XYZxyz(3.7746, 2.3649, 10.8451)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D5E #495E1D
analogous
#1D285E #321D5E #531D5E
triadic
#321D5E #5E321D #1D5E32
tetradic
#321D5E #5E1D28 #495E1D #1D5E53
square
#321D5E #5E1D28 #495E1D #1D5E53
split-complementary
#321D5E #5E531D #285E1D
monochromatic
#0C0717 #190F2F #321D5E #4B2B8D #643ABC

Accessibility & contrast

On white

14.26
#321D5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321D5E
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D5E#FFFFFF#000000##FFFFFF
##321D5E1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B60
Deuteranopia (green-blind)
#00295D
Tritanopia (blue-blind)
#262C3A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321d5e;
/* rgb */ color: rgb(50, 29, 94);
/* oklch */ color: oklch(29.9% 0.110 293.5);
Tailwind
colors: {
  custom: {
    50: '#6e5a8c',
    500: '#321d5e',
    950: '#000000',
  },
}
SCSS
$custom: #321d5e;
$custom-light: #6e5a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#321d5e",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 94
  },
  "hsl": {
    "h": 259.385,
    "s": 52.846,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29872,
    "c": 0.10997,
    "h": 293.5
  },
  "luminance": 0.02365
}

Semantic roles & 50–950 ramp

primary
#321D5E
secondary
#799344
accent
#DC4CAE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #321D5E

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

Preview Lab → · Contrast checker → · Palette generator →

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