#321A7C#321A7C

#321A7C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.153 H 285.3°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#321A7C
RGBrgb(50, 26, 124)
HSLhsl(255, 65%, 29%)
HSVhsv(255, 79%, 49%)
CMYKcmyk(59.7%, 79%, 0%, 51.4%)
CIE-LABlab(19.52, 38.17, -51.18)
CIE-LCHlch(19.52, 63.84, 306.72°)
OKLaboklab(32.33% 0.0402 -0.1474)
OKLCHoklch(32.33% 0.153 285.3)
XYZxyz(5.3218, 2.8718, 19.3388)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A7C #647C1A
analogous
#1A337C #321A7C #631A7C
triadic
#321A7C #7C321A #1A7C32
tetradic
#321A7C #7C1A33 #647C1A #1A7C63
square
#321A7C #7C1A33 #647C1A #1A7C63
split-complementary
#321A7C #7C631A #337C1A
monochromatic
#0A0519 #1E0F49 #321A7C #4625AF #613BD6

Accessibility & contrast

On white

13.34
#321A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#321A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A7C
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A7C#FFFFFF#000000##FFFFFF
##321A7C1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#0B364A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #321a7c;
/* rgb */ color: rgb(50, 26, 124);
/* oklch */ color: oklch(32.3% 0.153 285.3);
Tailwind
colors: {
  custom: {
    50: '#745aa3',
    500: '#321a7c',
    950: '#000000',
  },
}
SCSS
$custom: #321a7c;
$custom-light: #745aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#321a7c",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 254.694,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3233,
    "c": 0.15279,
    "h": 285.3
  },
  "luminance": 0.02872
}

Semantic roles & 50–950 ramp

primary
#321A7C
secondary
#95B042
accent
#E840BF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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