#321A74#321A74

#321A74 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.143 H 287.3°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#321A74
RGBrgb(50, 26, 116)
HSLhsl(256, 63%, 28%)
HSVhsv(256, 78%, 45%)
CMYKcmyk(56.9%, 77.6%, 0%, 54.5%)
CIE-LABlab(18.70, 35.69, -47.40)
CIE-LCHlch(18.70, 59.34, 306.98°)
OKLaboklab(31.51% 0.0425 -0.1363)
OKLCHoklch(31.51% 0.143 287.3)
XYZxyz(4.8362, 2.6776, 16.7816)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A74 #5C741A
analogous
#1A2F74 #321A74 #5F1A74
triadic
#321A74 #74321A #1A7432
tetradic
#321A74 #741A2F #5C741A #1A745F
square
#321A74 #741A2F #5C741A #1A745F
split-complementary
#321A74 #745F1A #2F741A
monochromatic
#0B0619 #1C0F42 #321A74 #4825A6 #6036D2

Accessibility & contrast

On white

13.68
#321A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#321A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A74
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A74#FFFFFF#000000##FFFFFF
##321A741.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002B72
Tritanopia (blue-blind)
#163345
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321a74;
/* rgb */ color: rgb(50, 26, 116);
/* oklch */ color: oklch(31.5% 0.143 287.3);
Tailwind
colors: {
  custom: {
    50: '#72599d',
    500: '#321a74',
    950: '#000000',
  },
}
SCSS
$custom: #321a74;
$custom-light: #72599d;
$custom-dark: #000000;
JSON
{
  "hex": "#321a74",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 256,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31506,
    "c": 0.14282,
    "h": 287.3
  },
  "luminance": 0.02678
}

Semantic roles & 50–950 ramp

primary
#321A74
secondary
#8DA941
accent
#E641BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #321A74

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

Preview Lab → · Contrast checker → · Palette generator →

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