#321F88#321F88

#321F88 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.163 H 281.8°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#321F88
RGBrgb(50, 31, 136)
HSLhsl(251, 63%, 33%)
HSVhsv(251, 77%, 53%)
CMYKcmyk(63.2%, 77.2%, 0%, 46.7%)
CIE-LABlab(21.71, 39.25, -55.16)
CIE-LCHlch(21.71, 67.70, 305.44°)
OKLaboklab(34.24% 0.0333 -0.1591)
OKLCHoklch(34.24% 0.163 281.8)
XYZxyz(6.2479, 3.4352, 23.6216)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F88 #75881F
analogous
#1F4188 #321F88 #661F88
triadic
#321F88 #88321F #1F8832
tetradic
#321F88 #881F41 #75881F #1F8866
square
#321F88 #881F41 #75881F #1F8866
split-complementary
#321F88 #88661F #41881F
monochromatic
#0D0824 #201456 #321F88 #442ABA #644BD6

Accessibility & contrast

On white

12.45
#321F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#321F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F88
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F88#FFFFFF#000000##FFFFFF
##321F881.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#003086
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #321f88;
/* rgb */ color: rgb(50, 31, 136);
/* oklch */ color: oklch(34.2% 0.163 281.8);
Tailwind
colors: {
  custom: {
    50: '#765dac',
    500: '#321f88',
    950: '#000000',
  },
}
SCSS
$custom: #321f88;
$custom-light: #765dac;
$custom-dark: #000000;
JSON
{
  "hex": "#321f88",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 250.857,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34241,
    "c": 0.16254,
    "h": 281.8
  },
  "luminance": 0.03436
}

Semantic roles & 50–950 ramp

primary
#321F88
secondary
#A5B94A
accent
#E642C8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321F88

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

Preview Lab → · Contrast checker → · Palette generator →

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