#321D8F#321D8F

#321D8F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.173 H 280.9°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#321D8F
RGBrgb(50, 29, 143)
HSLhsl(251, 66%, 34%)
HSVhsv(251, 80%, 56%)
CMYKcmyk(65%, 79.7%, 0%, 43.9%)
CIE-LABlab(22.09, 42.49, -58.91)
CIE-LCHlch(22.09, 72.63, 305.81°)
OKLaboklab(34.73% 0.0327 -0.17)
OKLCHoklch(34.73% 0.173 280.9)
XYZxyz(6.7111, 3.5395, 26.3108)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D8F #7A8F1D
analogous
#1D418F #321D8F #6B1D8F
triadic
#321D8F #8F321D #1D8F32
tetradic
#321D8F #8F1D41 #7A8F1D #1D8F6B
square
#321D8F #8F1D41 #7A8F1D #1D8F6B
split-complementary
#321D8F #8F6B1D #418F1D
monochromatic
#0E0829 #20135C #321D8F #4427C2 #664CDB

Accessibility & contrast

On white

12.30
#321D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#321D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D8F
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D8F#FFFFFF#000000##FFFFFF
##321D8F1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #321d8f;
/* rgb */ color: rgb(50, 29, 143);
/* oklch */ color: oklch(34.7% 0.173 280.9);
Tailwind
colors: {
  custom: {
    50: '#775db1',
    500: '#321d8f',
    950: '#000000',
  },
}
SCSS
$custom: #321d8f;
$custom-light: #775db1;
$custom-dark: #000000;
JSON
{
  "hex": "#321d8f",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 251.053,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34728,
    "c": 0.17311,
    "h": 280.9
  },
  "luminance": 0.0354
}

Semantic roles & 50–950 ramp

primary
#321D8F
secondary
#A8BD4B
accent
#E93FCA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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