#321B59#321B59

#321B59 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.1% C 0.106 H 296.2°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#321B59
RGBrgb(50, 27, 89)
HSLhsl(262, 53%, 23%)
HSVhsv(262, 70%, 35%)
CMYKcmyk(43.8%, 69.7%, 0%, 65.1%)
CIE-LABlab(16.42, 26.76, -33.38)
CIE-LCHlch(16.42, 42.78, 308.72°)
OKLaboklab(29.11% 0.0469 -0.0952)
OKLCHoklch(29.11% 0.106 296.2)
XYZxyz(3.5100, 2.1832, 9.6857)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B59 #42591B
analogous
#1B2359 #321B59 #511B59
triadic
#321B59 #59321B #1B5932
tetradic
#321B59 #591B23 #42591B #1B5951
square
#321B59 #591B23 #42591B #1B5951
split-complementary
#321B59 #59511B #23591B
monochromatic
#0D0717 #180D2A #321B59 #4C2988 #6737B7

Accessibility & contrast

On white

14.62
#321B59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#321B59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B59
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B59#FFFFFF#000000##FFFFFF
##321B591.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295B
Deuteranopia (green-blind)
#002858
Tritanopia (blue-blind)
#282937
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321b59;
/* rgb */ color: rgb(50, 27, 89);
/* oklch */ color: oklch(29.1% 0.106 296.2);
Tailwind
colors: {
  custom: {
    50: '#6e5988',
    500: '#321b59',
    950: '#000000',
  },
}
SCSS
$custom: #321b59;
$custom-light: #6e5988;
$custom-dark: #000000;
JSON
{
  "hex": "#321b59",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 89
  },
  "hsl": {
    "h": 262.258,
    "s": 53.448,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29107,
    "c": 0.10613,
    "h": 296.2
  },
  "luminance": 0.02183
}

Semantic roles & 50–950 ramp

primary
#321B59
secondary
#728F41
accent
#DD4BA7
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321B59

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

Preview Lab → · Contrast checker → · Palette generator →

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