#321B5E#321B5E

#321B5E is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.5% C 0.113 H 294.2°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#321B5E
RGBrgb(50, 27, 94)
HSLhsl(261, 55%, 24%)
HSVhsv(261, 71%, 37%)
CMYKcmyk(46.8%, 71.3%, 0%, 63.1%)
CIE-LABlab(16.84, 28.30, -36.03)
CIE-LCHlch(16.84, 45.82, 308.14°)
OKLaboklab(29.55% 0.0462 -0.103)
OKLCHoklch(29.55% 0.113 294.2)
XYZxyz(3.7272, 2.2700, 10.8293)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B5E #475E1B
analogous
#1B255E #321B5E #531B5E
triadic
#321B5E #5E321B #1B5E32
tetradic
#321B5E #5E1B25 #475E1B #1B5E53
square
#321B5E #5E1B25 #475E1B #1B5E53
split-complementary
#321B5E #5E531B #255E1B
monochromatic
#0D0718 #190D2E #321B5E #4B298E #6536BD

Accessibility & contrast

On white

14.44
#321B5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321B5E
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B5E#FFFFFF#000000##FFFFFF
##321B5E1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#00285D
Tritanopia (blue-blind)
#262B3A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321b5e;
/* rgb */ color: rgb(50, 27, 94);
/* oklch */ color: oklch(29.5% 0.113 294.2);
Tailwind
colors: {
  custom: {
    50: '#6e598c',
    500: '#321b5e',
    950: '#000000',
  },
}
SCSS
$custom: #321b5e;
$custom-light: #6e598c;
$custom-dark: #000000;
JSON
{
  "hex": "#321b5e",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 94
  },
  "hsl": {
    "h": 260.597,
    "s": 55.372,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29546,
    "c": 0.11291,
    "h": 294.2
  },
  "luminance": 0.0227
}

Semantic roles & 50–950 ramp

primary
#321B5E
secondary
#779441
accent
#DF49AB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #321B5E

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

Preview Lab → · Contrast checker → · Palette generator →

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