#321A5E#321A5E

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

Color values

HEX#321A5E
RGBrgb(50, 26, 94)
HSLhsl(261, 57%, 24%)
HSVhsv(261, 72%, 37%)
CMYKcmyk(46.8%, 72.3%, 0%, 63.1%)
CIE-LABlab(16.63, 28.90, -36.39)
CIE-LCHlch(16.63, 46.47, 308.45°)
OKLaboklab(29.39% 0.0474 -0.104)
OKLCHoklch(29.39% 0.114 294.5)
XYZxyz(3.7046, 2.2250, 10.8218)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A5E #465E1A
analogous
#1A245E #321A5E #541A5E
triadic
#321A5E #5E321A #1A5E32
tetradic
#321A5E #5E1A24 #465E1A #1A5E54
square
#321A5E #5E1A24 #465E1A #1A5E54
split-complementary
#321A5E #5E541A #245E1A
monochromatic
#0D0718 #180D2E #321A5E #4B278E #6535BE

Accessibility & contrast

On white

14.53
#321A5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321A5E
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A5E#FFFFFF#000000##FFFFFF
##321A5E1.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#00285D
Tritanopia (blue-blind)
#262A39
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321a5e;
/* rgb */ color: rgb(50, 26, 94);
/* oklch */ color: oklch(29.4% 0.114 294.5);
Tailwind
colors: {
  custom: {
    50: '#6e588c',
    500: '#321a5e',
    950: '#000000',
  },
}
SCSS
$custom: #321a5e;
$custom-light: #6e588c;
$custom-dark: #000000;
JSON
{
  "hex": "#321a5e",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 94
  },
  "hsl": {
    "h": 261.176,
    "s": 56.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29389,
    "c": 0.11434,
    "h": 294.5
  },
  "luminance": 0.02225
}

Semantic roles & 50–950 ramp

primary
#321A5E
secondary
#769440
accent
#E048AA
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #321A5E

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

Preview Lab → · Contrast checker → · Palette generator →

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