#321D88#321D88

#321D88 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.165 H 282.2°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#321D88
RGBrgb(50, 29, 136)
HSLhsl(252, 65%, 32%)
HSVhsv(252, 79%, 53%)
CMYKcmyk(63.2%, 78.7%, 0%, 46.7%)
CIE-LABlab(21.33, 40.32, -55.78)
CIE-LCHlch(21.33, 68.82, 305.86°)
OKLaboklab(33.98% 0.0347 -0.1609)
OKLCHoklch(33.98% 0.165 282.2)
XYZxyz(6.1973, 3.3340, 23.6047)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D88 #73881D
analogous
#1D3D88 #321D88 #681D88
triadic
#321D88 #88321D #1D8832
tetradic
#321D88 #881D3D #73881D #1D8868
square
#321D88 #881D3D #73881D #1D8868
split-complementary
#321D88 #88681D #3D881D
monochromatic
#0D0723 #1F1256 #321D88 #4528BA #6448D8

Accessibility & contrast

On white

12.60
#321D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#321D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D88
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D88#FFFFFF#000000##FFFFFF
##321D881.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #321d88;
/* rgb */ color: rgb(50, 29, 136);
/* oklch */ color: oklch(34.0% 0.165 282.2);
Tailwind
colors: {
  custom: {
    50: '#765cac',
    500: '#321d88',
    950: '#000000',
  },
}
SCSS
$custom: #321d88;
$custom-light: #765cac;
$custom-dark: #000000;
JSON
{
  "hex": "#321d88",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 136
  },
  "hsl": {
    "h": 251.776,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33978,
    "c": 0.16457,
    "h": 282.2
  },
  "luminance": 0.03334
}

Semantic roles & 50–950 ramp

primary
#321D88
secondary
#A3BA47
accent
#E840C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #321D88

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

Preview Lab → · Contrast checker → · Palette generator →

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