#321F5C#321F5C

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

Color values

HEX#321F5C
RGBrgb(50, 31, 92)
HSLhsl(259, 50%, 24%)
HSVhsv(259, 66%, 36%)
CMYKcmyk(45.7%, 66.3%, 0%, 63.9%)
CIE-LABlab(17.60, 25.18, -33.47)
CIE-LCHlch(17.60, 41.89, 306.95°)
OKLaboklab(30.04% 0.0415 -0.0955)
OKLCHoklch(30.04% 0.104 293.5)
XYZxyz(3.7366, 2.4307, 10.3954)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F5C #495C1F
analogous
#1F2B5C #321F5C #511F5C
triadic
#321F5C #5C321F #1F5C32
tetradic
#321F5C #5C1F2B #495C1F #1F5C51
square
#321F5C #5C1F2B #495C1F #1F5C51
split-complementary
#321F5C #5C511F #2B5C1F
monochromatic
#0C0817 #19102E #321F5C #4B2E8A #643EB8

Accessibility & contrast

On white

14.13
#321F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#321F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F5C
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F5C#FFFFFF#000000##FFFFFF
##321F5C1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5E
Deuteranopia (green-blind)
#002A5B
Tritanopia (blue-blind)
#272D3A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #321f5c;
/* rgb */ color: rgb(50, 31, 92);
/* oklch */ color: oklch(30.0% 0.104 293.5);
Tailwind
colors: {
  custom: {
    50: '#6e5b8b',
    500: '#321f5c',
    950: '#000000',
  },
}
SCSS
$custom: #321f5c;
$custom-light: #6e5b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#321f5c",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 92
  },
  "hsl": {
    "h": 258.689,
    "s": 49.593,
    "l": 24.118
  },
  "oklch": {
    "l": 0.30042,
    "c": 0.10412,
    "h": 293.5
  },
  "luminance": 0.02431
}

Semantic roles & 50–950 ramp

primary
#321F5C
secondary
#799146
accent
#D94FAE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #321F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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