#321A7F#321A7F

#321A7F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.156 H 284.6°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#321A7F
RGBrgb(50, 26, 127)
HSLhsl(254, 66%, 30%)
HSVhsv(254, 80%, 50%)
CMYKcmyk(60.6%, 79.5%, 0%, 50.2%)
CIE-LABlab(19.84, 39.09, -52.56)
CIE-LCHlch(19.84, 65.51, 306.64°)
OKLaboklab(32.65% 0.0394 -0.1515)
OKLCHoklch(32.65% 0.156 284.6)
XYZxyz(5.5144, 2.9489, 20.3532)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A7F #677F1A
analogous
#1A357F #321A7F #641A7F
triadic
#321A7F #7F321A #1A7F32
tetradic
#321A7F #7F1A35 #677F1A #1A7F64
square
#321A7F #7F1A35 #677F1A #1A7F64
split-complementary
#321A7F #7F641A #357F1A
monochromatic
#0A0519 #1E104C #321A7F #4624B2 #613CD7

Accessibility & contrast

On white

13.21
#321A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#321A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A7F
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A7F#FFFFFF#000000##FFFFFF
##321A7F1.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#04374C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321a7f;
/* rgb */ color: rgb(50, 26, 127);
/* oklch */ color: oklch(32.6% 0.156 284.6);
Tailwind
colors: {
  custom: {
    50: '#745aa5',
    500: '#321a7f',
    950: '#000000',
  },
}
SCSS
$custom: #321a7f;
$custom-light: #745aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#321a7f",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 254.257,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.32645,
    "c": 0.15649,
    "h": 284.6
  },
  "luminance": 0.02949
}

Semantic roles & 50–950 ramp

primary
#321A7F
secondary
#98B342
accent
#E93FC1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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