#321B5C#321B5C

#321B5C is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.4% C 0.110 H 295.0°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#321B5C
RGBrgb(50, 27, 92)
HSLhsl(261, 55%, 23%)
HSVhsv(261, 71%, 36%)
CMYKcmyk(45.7%, 70.7%, 0%, 63.9%)
CIE-LABlab(16.67, 27.68, -34.98)
CIE-LCHlch(16.67, 44.61, 308.36°)
OKLaboklab(29.37% 0.0465 -0.0999)
OKLCHoklch(29.37% 0.11 295)
XYZxyz(3.6386, 2.2346, 10.3628)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B5C #455C1B
analogous
#1B245C #321B5C #521B5C
triadic
#321B5C #5C321B #1B5C32
tetradic
#321B5C #5C1B24 #455C1B #1B5C52
square
#321B5C #5C1B24 #455C1B #1B5C52
split-complementary
#321B5C #5C521B #245C1B
monochromatic
#0D0718 #180D2D #321B5C #4C298B #6537BB

Accessibility & contrast

On white

14.51
#321B5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#321B5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B5C
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B5C#FFFFFF#000000##FFFFFF
##321B5C1.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5E
Deuteranopia (green-blind)
#00285B
Tritanopia (blue-blind)
#272A39
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321b5c;
/* rgb */ color: rgb(50, 27, 92);
/* oklch */ color: oklch(29.4% 0.110 295.0);
Tailwind
colors: {
  custom: {
    50: '#6e598b',
    500: '#321b5c',
    950: '#000000',
  },
}
SCSS
$custom: #321b5c;
$custom-light: #6e598b;
$custom-dark: #000000;
JSON
{
  "hex": "#321b5c",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 92
  },
  "hsl": {
    "h": 261.231,
    "s": 54.622,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29369,
    "c": 0.11021,
    "h": 295
  },
  "luminance": 0.02235
}

Semantic roles & 50–950 ramp

primary
#321B5C
secondary
#759241
accent
#DE4AAA
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #321B5C

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

Preview Lab → · Contrast checker → · Palette generator →

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