#321B4A#321B4A

#321B4A is a dark, moderate violet. Relative luminance 0.020; OKLCH L 27.9% C 0.085 H 304.0°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#321B4A
RGBrgb(50, 27, 74)
HSLhsl(269, 47%, 20%)
HSVhsv(269, 64%, 29%)
CMYKcmyk(32.4%, 63.5%, 0%, 71%)
CIE-LABlab(15.26, 22.28, -25.07)
CIE-LCHlch(15.26, 33.54, 311.63°)
OKLaboklab(27.89% 0.0477 -0.0708)
OKLCHoklch(27.89% 0.085 304)
XYZxyz(2.9431, 1.9564, 6.6998)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B4A #334A1B
analogous
#1B1B4A #321B4A #4A1B4A
triadic
#321B4A #4A321B #1B4A32
tetradic
#321B4A #4A1B1B #334A1B #1B4A4A
square
#321B4A #4A1B1B #334A1B #1B4A4A
split-complementary
#321B4A #4A4A1B #1B4A1B
monochromatic
#0F0816 #140B1D #321B4A #502B77 #6F3CA4

Accessibility & contrast

On white

15.09
#321B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#321B4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B4A
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B4A#FFFFFF#000000##FFFFFF
##321B4A1.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08264C
Deuteranopia (green-blind)
#112649
Tritanopia (blue-blind)
#2E242F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #321b4a;
/* rgb */ color: rgb(50, 27, 74);
/* oklch */ color: oklch(27.9% 0.085 304.0);
Tailwind
colors: {
  custom: {
    50: '#6c587d',
    500: '#321b4a',
    950: '#000000',
  },
}
SCSS
$custom: #321b4a;
$custom-light: #6c587d;
$custom-dark: #000000;
JSON
{
  "hex": "#321b4a",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 74
  },
  "hsl": {
    "h": 269.362,
    "s": 46.535,
    "l": 19.804
  },
  "oklch": {
    "l": 0.2789,
    "c": 0.08534,
    "h": 304
  },
  "luminance": 0.01956
}

Semantic roles & 50–950 ramp

primary
#321B4A
secondary
#618041
accent
#D65295
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #321B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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