#321A52#321A52

#321A52 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.098 H 299.9°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#321A52
RGBrgb(50, 26, 82)
HSLhsl(266, 52%, 21%)
HSVhsv(266, 68%, 32%)
CMYKcmyk(39%, 68.3%, 0%, 67.8%)
CIE-LABlab(15.62, 25.27, -29.95)
CIE-LCHlch(15.62, 39.18, 310.16°)
OKLaboklab(28.35% 0.0489 -0.0851)
OKLCHoklch(28.35% 0.098 299.9)
XYZxyz(3.2074, 2.0261, 8.2031)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A52 #3A521A
analogous
#1A1E52 #321A52 #4E1A52
triadic
#321A52 #52321A #1A5232
tetradic
#321A52 #521A1E #3A521A #1A524E
square
#321A52 #521A1E #3A521A #1A524E
split-complementary
#321A52 #524E1A #1E521A
monochromatic
#0E0717 #160B24 #321A52 #4E2980 #6B37AF

Accessibility & contrast

On white

14.94
#321A52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#321A52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A52
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A52#FFFFFF#000000##FFFFFF
##321A521.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002754
Deuteranopia (green-blind)
#052751
Tritanopia (blue-blind)
#2B2633
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #321a52;
/* rgb */ color: rgb(50, 26, 82);
/* oklch */ color: oklch(28.3% 0.098 299.9);
Tailwind
colors: {
  custom: {
    50: '#6d5883',
    500: '#321a52',
    950: '#000000',
  },
}
SCSS
$custom: #321a52;
$custom-light: #6d5883;
$custom-dark: #000000;
JSON
{
  "hex": "#321a52",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 82
  },
  "hsl": {
    "h": 265.714,
    "s": 51.852,
    "l": 21.176
  },
  "oklch": {
    "l": 0.2835,
    "c": 0.09815,
    "h": 299.9
  },
  "luminance": 0.02026
}

Semantic roles & 50–950 ramp

primary
#321A52
secondary
#698840
accent
#DB4C9E
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #321A52

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

Preview Lab → · Contrast checker → · Palette generator →

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