#321A68#321A68

#321A68 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.127 H 290.9°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#321A68
RGBrgb(50, 26, 104)
HSLhsl(258, 60%, 25%)
HSVhsv(258, 75%, 41%)
CMYKcmyk(51.9%, 75%, 0%, 59.2%)
CIE-LABlab(17.54, 31.98, -41.51)
CIE-LCHlch(17.54, 52.40, 307.61°)
OKLaboklab(30.32% 0.0455 -0.1191)
OKLCHoklch(30.32% 0.127 290.9)
XYZxyz(4.1828, 2.4162, 13.3400)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A68 #50681A
analogous
#1A2968 #321A68 #591A68
triadic
#321A68 #68321A #1A6832
tetradic
#321A68 #681A29 #50681A #1A6859
square
#321A68 #681A29 #50681A #1A6859
split-complementary
#321A68 #68591A #29681A
monochromatic
#0C0618 #1A0E37 #321A68 #4A2699 #6132CA

Accessibility & contrast

On white

14.16
#321A68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#321A68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A68
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A68#FFFFFF#000000##FFFFFF
##321A681.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002966
Tritanopia (blue-blind)
#202E3F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #321a68;
/* rgb */ color: rgb(50, 26, 104);
/* oklch */ color: oklch(30.3% 0.127 290.9);
Tailwind
colors: {
  custom: {
    50: '#705994',
    500: '#321a68',
    950: '#000000',
  },
}
SCSS
$custom: #321a68;
$custom-light: #705994;
$custom-dark: #000000;
JSON
{
  "hex": "#321a68",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 104
  },
  "hsl": {
    "h": 258.462,
    "s": 60,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30321,
    "c": 0.12748,
    "h": 290.9
  },
  "luminance": 0.02416
}

Semantic roles & 50–950 ramp

primary
#321A68
secondary
#819D40
accent
#E345B2
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #321A68

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

Preview Lab → · Contrast checker → · Palette generator →

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