#321D4F#321D4F

#321D4F is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.089 H 300.2°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#321D4F
RGBrgb(50, 29, 79)
HSLhsl(265, 46%, 21%)
HSVhsv(265, 63%, 31%)
CMYKcmyk(36.7%, 63.3%, 0%, 69%)
CIE-LABlab(16.11, 22.46, -27.12)
CIE-LCHlch(16.11, 35.21, 309.63°)
OKLaboklab(28.63% 0.0447 -0.0768)
OKLCHoklch(28.63% 0.089 300.2)
XYZxyz(3.1657, 2.1213, 7.6383)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D4F #3A4F1D
analogous
#1D214F #321D4F #4B1D4F
triadic
#321D4F #4F321D #1D4F32
tetradic
#321D4F #4F1D21 #3A4F1D #1D4F4B
square
#321D4F #4F1D21 #3A4F1D #1D4F4B
split-complementary
#321D4F #4F4B1D #214F1D
monochromatic
#0E0816 #160D22 #321D4F #4E2D7C #6B3EA9

Accessibility & contrast

On white

14.75
#321D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321D4F
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D4F#FFFFFF#000000##FFFFFF
##321D4F1.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062851
Deuteranopia (green-blind)
#0E284E
Tritanopia (blue-blind)
#2C2732
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #321d4f;
/* rgb */ color: rgb(50, 29, 79);
/* oklch */ color: oklch(28.6% 0.089 300.2);
Tailwind
colors: {
  custom: {
    50: '#6c5a81',
    500: '#321d4f',
    950: '#000000',
  },
}
SCSS
$custom: #321d4f;
$custom-light: #6c5a81;
$custom-dark: #000000;
JSON
{
  "hex": "#321d4f",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 79
  },
  "hsl": {
    "h": 265.2,
    "s": 46.296,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28633,
    "c": 0.08889,
    "h": 300.2
  },
  "luminance": 0.02121
}

Semantic roles & 50–950 ramp

primary
#321D4F
secondary
#698444
accent
#D6529E
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07040A
muted
#7A797C

Preview Lab

Preview with #321D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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