#321C5F#321C5F

#321C5F is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.8% C 0.113 H 293.5°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#321C5F
RGBrgb(50, 28, 95)
HSLhsl(260, 54%, 24%)
HSVhsv(260, 71%, 37%)
CMYKcmyk(47.4%, 70.5%, 0%, 62.7%)
CIE-LABlab(17.15, 28.00, -36.20)
CIE-LCHlch(17.15, 45.76, 307.72°)
OKLaboklab(29.8% 0.0449 -0.1035)
OKLCHoklch(29.8% 0.113 293.5)
XYZxyz(3.7956, 2.3347, 11.0749)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C5F #495F1C
analogous
#1C285F #321C5F #541C5F
triadic
#321C5F #5F321C #1C5F32
tetradic
#321C5F #5F1C28 #495F1C #1C5F54
square
#321C5F #5F1C28 #495F1C #1C5F54
split-complementary
#321C5F #5F541C #285F1C
monochromatic
#0C0718 #190E30 #321C5F #4B2A8E #6438BE

Accessibility & contrast

On white

14.31
#321C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321C5F
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C5F#FFFFFF#000000##FFFFFF
##321C5F1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321c5f;
/* rgb */ color: rgb(50, 28, 95);
/* oklch */ color: oklch(29.8% 0.113 293.5);
Tailwind
colors: {
  custom: {
    50: '#6e5a8d',
    500: '#321c5f',
    950: '#000000',
  },
}
SCSS
$custom: #321c5f;
$custom-light: #6e5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#321c5f",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 95
  },
  "hsl": {
    "h": 259.701,
    "s": 54.472,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29796,
    "c": 0.11281,
    "h": 293.5
  },
  "luminance": 0.02335
}

Semantic roles & 50–950 ramp

primary
#321C5F
secondary
#799442
accent
#DE4AAD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #321C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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