#321C5E#321C5E

#321C5E is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.7% C 0.111 H 293.8°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#321C5E
RGBrgb(50, 28, 94)
HSLhsl(260, 54%, 24%)
HSVhsv(260, 70%, 37%)
CMYKcmyk(46.8%, 70.2%, 0%, 63.1%)
CIE-LABlab(17.07, 27.69, -35.67)
CIE-LCHlch(17.07, 45.16, 307.82°)
OKLaboklab(29.71% 0.0451 -0.1019)
OKLCHoklch(29.71% 0.111 293.8)
XYZxyz(3.7505, 2.3167, 10.8371)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C5E #485E1C
analogous
#1C275E #321C5E #531C5E
triadic
#321C5E #5E321C #1C5E32
tetradic
#321C5E #5E1C27 #485E1C #1C5E53
square
#321C5E #5E1C27 #485E1C #1C5E53
split-complementary
#321C5E #5E531C #275E1C
monochromatic
#0D0718 #190E2F #321C5E #4B2A8D #6438BC

Accessibility & contrast

On white

14.35
#321C5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321C5E
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C5E#FFFFFF#000000##FFFFFF
##321C5E1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.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: #321c5e;
/* rgb */ color: rgb(50, 28, 94);
/* oklch */ color: oklch(29.7% 0.111 293.8);
Tailwind
colors: {
  custom: {
    50: '#6e5a8c',
    500: '#321c5e',
    950: '#000000',
  },
}
SCSS
$custom: #321c5e;
$custom-light: #6e5a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#321c5e",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 94
  },
  "hsl": {
    "h": 260,
    "s": 54.098,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29707,
    "c": 0.11145,
    "h": 293.8
  },
  "luminance": 0.02317
}

Semantic roles & 50–950 ramp

primary
#321C5E
secondary
#789342
accent
#DD4AAC
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #321C5E

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

Preview Lab → · Contrast checker → · Palette generator →

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