#321A7E#321A7E

#321A7E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.155 H 284.8°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#321A7E
RGBrgb(50, 26, 126)
HSLhsl(254, 66%, 30%)
HSVhsv(254, 79%, 49%)
CMYKcmyk(60.3%, 79.4%, 0%, 50.6%)
CIE-LABlab(19.73, 38.78, -52.10)
CIE-LCHlch(19.73, 64.95, 306.66°)
OKLaboklab(32.54% 0.0397 -0.1501)
OKLCHoklch(32.54% 0.155 284.8)
XYZxyz(5.4495, 2.9229, 20.0116)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A7E #667E1A
analogous
#1A347E #321A7E #641A7E
triadic
#321A7E #7E321A #1A7E32
tetradic
#321A7E #7E1A34 #667E1A #1A7E64
square
#321A7E #7E1A34 #667E1A #1A7E64
split-complementary
#321A7E #7E641A #347E1A
monochromatic
#0A0519 #1E104B #321A7E #4624B1 #613CD7

Accessibility & contrast

On white

13.25
#321A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#321A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A7E
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A7E#FFFFFF#000000##FFFFFF
##321A7E1.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#06374B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321a7e;
/* rgb */ color: rgb(50, 26, 126);
/* oklch */ color: oklch(32.5% 0.155 284.8);
Tailwind
colors: {
  custom: {
    50: '#745aa4',
    500: '#321a7e',
    950: '#000000',
  },
}
SCSS
$custom: #321a7e;
$custom-light: #745aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#321a7e",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 254.4,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3254,
    "c": 0.15527,
    "h": 284.8
  },
  "luminance": 0.02923
}

Semantic roles & 50–950 ramp

primary
#321A7E
secondary
#97B242
accent
#E93FC0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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