#321D4C#321D4C

#321D4C is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.4% C 0.085 H 301.9°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#321D4C
RGBrgb(50, 29, 76)
HSLhsl(267, 45%, 21%)
HSVhsv(267, 62%, 30%)
CMYKcmyk(34.2%, 61.8%, 0%, 70.2%)
CIE-LABlab(15.89, 21.57, -25.42)
CIE-LCHlch(15.89, 33.34, 310.31°)
OKLaboklab(28.4% 0.0447 -0.0718)
OKLCHoklch(28.4% 0.085 301.9)
XYZxyz(3.0590, 2.0786, 7.0761)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D4C #374C1D
analogous
#1D1F4C #321D4C #491D4C
triadic
#321D4C #4C321D #1D4C32
tetradic
#321D4C #4C1D1F #374C1D #1D4C49
square
#321D4C #4C1D1F #374C1D #1D4C49
split-complementary
#321D4C #4C491D #1F4C1D
monochromatic
#0F0816 #150C20 #321D4C #4F2E78 #6C3FA5

Accessibility & contrast

On white

14.83
#321D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#321D4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D4C
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D4C#FFFFFF#000000##FFFFFF
##321D4C1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A274E
Deuteranopia (green-blind)
#11274B
Tritanopia (blue-blind)
#2D2631
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #321d4c;
/* rgb */ color: rgb(50, 29, 76);
/* oklch */ color: oklch(28.4% 0.085 301.9);
Tailwind
colors: {
  custom: {
    50: '#6c5a7e',
    500: '#321d4c',
    950: '#000000',
  },
}
SCSS
$custom: #321d4c;
$custom-light: #6c5a7e;
$custom-dark: #000000;
JSON
{
  "hex": "#321d4c",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 76
  },
  "hsl": {
    "h": 266.809,
    "s": 44.762,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28404,
    "c": 0.08459,
    "h": 301.9
  },
  "luminance": 0.02079
}

Semantic roles & 50–950 ramp

primary
#321D4C
secondary
#668144
accent
#D4539B
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #321D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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