#321A5C#321A5C

#321A5C is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.2% C 0.112 H 295.3°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#321A5C
RGBrgb(50, 26, 92)
HSLhsl(262, 56%, 23%)
HSVhsv(262, 72%, 36%)
CMYKcmyk(45.7%, 71.7%, 0%, 63.9%)
CIE-LABlab(16.45, 28.29, -35.34)
CIE-LCHlch(16.45, 45.27, 308.67°)
OKLaboklab(29.21% 0.0477 -0.101)
OKLCHoklch(29.21% 0.112 295.3)
XYZxyz(3.6160, 2.1895, 10.3552)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A5C #445C1A
analogous
#1A235C #321A5C #531A5C
triadic
#321A5C #5C321A #1A5C32
tetradic
#321A5C #5C1A23 #445C1A #1A5C53
square
#321A5C #5C1A23 #445C1A #1A5C53
split-complementary
#321A5C #5C531A #235C1A
monochromatic
#0D0718 #180D2C #321A5C #4C278C #6635BB

Accessibility & contrast

On white

14.60
#321A5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321A5C
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A5C#FFFFFF#000000##FFFFFF
##321A5C1.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295E
Deuteranopia (green-blind)
#00285B
Tritanopia (blue-blind)
#272A38
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321a5c;
/* rgb */ color: rgb(50, 26, 92);
/* oklch */ color: oklch(29.2% 0.112 295.3);
Tailwind
colors: {
  custom: {
    50: '#6e588b',
    500: '#321a5c',
    950: '#000000',
  },
}
SCSS
$custom: #321a5c;
$custom-light: #6e588b;
$custom-dark: #000000;
JSON
{
  "hex": "#321a5c",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 92
  },
  "hsl": {
    "h": 261.818,
    "s": 55.932,
    "l": 23.137
  },
  "oklch": {
    "l": 0.2921,
    "c": 0.11167,
    "h": 295.3
  },
  "luminance": 0.0219
}

Semantic roles & 50–950 ramp

primary
#321A5C
secondary
#749240
accent
#DF49A8
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #321A5C

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

Preview Lab → · Contrast checker → · Palette generator →

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