#321A80#321A80

#321A80 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.158 H 284.3°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#321A80
RGBrgb(50, 26, 128)
HSLhsl(254, 66%, 30%)
HSVhsv(254, 80%, 50%)
CMYKcmyk(60.9%, 79.7%, 0%, 49.8%)
CIE-LABlab(19.94, 39.40, -53.02)
CIE-LCHlch(19.94, 66.06, 306.61°)
OKLaboklab(32.75% 0.0391 -0.1528)
OKLCHoklch(32.75% 0.158 284.3)
XYZxyz(5.5799, 2.9751, 20.6981)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A80 #68801A
analogous
#1A3580 #321A80 #651A80
triadic
#321A80 #80321A #1A8032
tetradic
#321A80 #801A35 #68801A #1A8065
square
#321A80 #801A35 #68801A #1A8065
split-complementary
#321A80 #80651A #35801A
monochromatic
#0A051A #1E104D #321A80 #4624B3 #613DD8

Accessibility & contrast

On white

13.17
#321A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#321A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A80
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A80#FFFFFF#000000##FFFFFF
##321A801.0013.171.6013.17
#FFFFFF13.171.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002D7E
Tritanopia (blue-blind)
#02384C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321a80;
/* rgb */ color: rgb(50, 26, 128);
/* oklch */ color: oklch(32.8% 0.158 284.3);
Tailwind
colors: {
  custom: {
    50: '#745aa6',
    500: '#321a80',
    950: '#000000',
  },
}
SCSS
$custom: #321a80;
$custom-light: #745aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#321a80",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 128
  },
  "hsl": {
    "h": 254.118,
    "s": 66.234,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32751,
    "c": 0.15772,
    "h": 284.3
  },
  "luminance": 0.02975
}

Semantic roles & 50–950 ramp

primary
#321A80
secondary
#99B442
accent
#E93FC1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321A80

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

Preview Lab → · Contrast checker → · Palette generator →

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