#321E5D#321E5D

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

Color values

HEX#321E5D
RGBrgb(50, 30, 93)
HSLhsl(259, 51%, 24%)
HSVhsv(259, 68%, 36%)
CMYKcmyk(46.2%, 67.7%, 0%, 63.5%)
CIE-LABlab(17.45, 26.13, -34.39)
CIE-LCHlch(17.45, 43.19, 307.22°)
OKLaboklab(29.95% 0.0427 -0.0982)
OKLCHoklch(29.95% 0.107 293.5)
XYZxyz(3.7549, 2.3969, 10.6186)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E5D #495D1E
analogous
#1E2A5D #321E5D #521E5D
triadic
#321E5D #5D321E #1E5D32
tetradic
#321E5D #5D1E2A #495D1E #1E5D52
square
#321E5D #5D1E2A #495D1E #1E5D52
split-complementary
#321E5D #5D521E #2A5D1E
monochromatic
#0C0717 #190F2F #321E5D #4B2D8B #643CBA

Accessibility & contrast

On white

14.19
#321E5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321E5D
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E5D#FFFFFF#000000##FFFFFF
##321E5D1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5F
Deuteranopia (green-blind)
#002A5C
Tritanopia (blue-blind)
#262D3A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #321e5d;
/* rgb */ color: rgb(50, 30, 93);
/* oklch */ color: oklch(30.0% 0.107 293.5);
Tailwind
colors: {
  custom: {
    50: '#6e5b8b',
    500: '#321e5d',
    950: '#000000',
  },
}
SCSS
$custom: #321e5d;
$custom-light: #6e5b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#321e5d",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 93
  },
  "hsl": {
    "h": 259.048,
    "s": 51.22,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29954,
    "c": 0.10707,
    "h": 293.5
  },
  "luminance": 0.02397
}

Semantic roles & 50–950 ramp

primary
#321E5D
secondary
#799245
accent
#DB4DAE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #321E5D

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

Preview Lab → · Contrast checker → · Palette generator →

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