#321C5D#321C5D

#321C5D is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.6% C 0.110 H 294.2°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#321C5D
RGBrgb(50, 28, 93)
HSLhsl(260, 54%, 24%)
HSVhsv(260, 70%, 36%)
CMYKcmyk(46.2%, 69.9%, 0%, 63.5%)
CIE-LABlab(16.98, 27.38, -35.14)
CIE-LCHlch(16.98, 44.55, 307.92°)
OKLaboklab(29.62% 0.0452 -0.1004)
OKLCHoklch(29.62% 0.11 294.2)
XYZxyz(3.7059, 2.2988, 10.6023)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C5D #475D1C
analogous
#1C265D #321C5D #521C5D
triadic
#321C5D #5D321C #1C5D32
tetradic
#321C5D #5D1C26 #475D1C #1C5D52
square
#321C5D #5D1C26 #475D1C #1C5D52
split-complementary
#321C5D #5D521C #265D1C
monochromatic
#0D0718 #190E2E #321C5D #4B2A8C #6538BB

Accessibility & contrast

On white

14.39
#321C5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#321C5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C5D
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C5D#FFFFFF#000000##FFFFFF
##321C5D1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5F
Deuteranopia (green-blind)
#00295C
Tritanopia (blue-blind)
#262B39
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321c5d;
/* rgb */ color: rgb(50, 28, 93);
/* oklch */ color: oklch(29.6% 0.110 294.2);
Tailwind
colors: {
  custom: {
    50: '#6e5a8b',
    500: '#321c5d',
    950: '#000000',
  },
}
SCSS
$custom: #321c5d;
$custom-light: #6e5a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#321c5d",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 93
  },
  "hsl": {
    "h": 260.308,
    "s": 53.719,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29619,
    "c": 0.11009,
    "h": 294.2
  },
  "luminance": 0.02299
}

Semantic roles & 50–950 ramp

primary
#321C5D
secondary
#779242
accent
#DD4BAC
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #321C5D

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

Preview Lab → · Contrast checker → · Palette generator →

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