#321A66#321A66

#321A66 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.1% C 0.125 H 291.6°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#321A66
RGBrgb(50, 26, 102)
HSLhsl(259, 59%, 25%)
HSVhsv(259, 75%, 40%)
CMYKcmyk(51%, 74.5%, 0%, 60%)
CIE-LABlab(17.35, 31.36, -40.51)
CIE-LCHlch(17.35, 51.23, 307.75°)
OKLaboklab(30.13% 0.0459 -0.1161)
OKLCHoklch(30.13% 0.125 291.6)
XYZxyz(4.0824, 2.3761, 12.8113)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A66 #4E661A
analogous
#1A2866 #321A66 #581A66
triadic
#321A66 #66321A #1A6632
tetradic
#321A66 #661A28 #4E661A #1A6658
square
#321A66 #661A28 #4E661A #1A6658
split-complementary
#321A66 #66581A #28661A
monochromatic
#0C0618 #1A0E35 #321A66 #4A2697 #6233C8

Accessibility & contrast

On white

14.24
#321A66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321A66
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A66#FFFFFF#000000##FFFFFF
##321A661.0014.241.4814.24
#FFFFFF14.241.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C68
Deuteranopia (green-blind)
#002965
Tritanopia (blue-blind)
#212D3E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #321a66;
/* rgb */ color: rgb(50, 26, 102);
/* oklch */ color: oklch(30.1% 0.125 291.6);
Tailwind
colors: {
  custom: {
    50: '#705992',
    500: '#321a66',
    950: '#000000',
  },
}
SCSS
$custom: #321a66;
$custom-light: #705992;
$custom-dark: #000000;
JSON
{
  "hex": "#321a66",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 102
  },
  "hsl": {
    "h": 258.947,
    "s": 59.375,
    "l": 25.098
  },
  "oklch": {
    "l": 0.3013,
    "c": 0.12488,
    "h": 291.6
  },
  "luminance": 0.02376
}

Semantic roles & 50–950 ramp

primary
#321A66
secondary
#7F9C40
accent
#E345B1
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #321A66

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

Preview Lab → · Contrast checker → · Palette generator →

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