#321A8F#321A8F

#321A8F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.176 H 281.3°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#321A8F
RGBrgb(50, 26, 143)
HSLhsl(252, 69%, 33%)
HSVhsv(252, 82%, 56%)
CMYKcmyk(65%, 81.8%, 0%, 43.9%)
CIE-LABlab(21.58, 43.97, -59.75)
CIE-LCHlch(21.58, 74.18, 306.35°)
OKLaboklab(34.38% 0.0344 -0.1724)
OKLCHoklch(34.38% 0.176 281.3)
XYZxyz(6.6412, 3.3996, 26.2875)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A8F #778F1A
analogous
#1A3C8F #321A8F #6C1A8F
triadic
#321A8F #8F321A #1A8F32
tetradic
#321A8F #8F1A3C #778F1A #1A8F6C
square
#321A8F #8F1A3C #778F1A #1A8F6C
split-complementary
#321A8F #8F6C1A #3C8F1A
monochromatic
#0E0727 #20115B #321A8F #4423C3 #6546DD

Accessibility & contrast

On white

12.50
#321A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#321A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A8F
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A8F#FFFFFF#000000##FFFFFF
##321A8F1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #321a8f;
/* rgb */ color: rgb(50, 26, 143);
/* oklch */ color: oklch(34.4% 0.176 281.3);
Tailwind
colors: {
  custom: {
    50: '#785bb1',
    500: '#321a8f',
    950: '#000000',
  },
}
SCSS
$custom: #321a8f;
$custom-light: #785bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#321a8f",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 252.308,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34375,
    "c": 0.1758,
    "h": 281.3
  },
  "luminance": 0.034
}

Semantic roles & 50–950 ramp

primary
#321A8F
secondary
#A6BF46
accent
#EC3CC8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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