#321F8D#321F8D

#321F8D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.169 H 280.9°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#321F8D
RGBrgb(50, 31, 141)
HSLhsl(250, 64%, 34%)
HSVhsv(250, 78%, 55%)
CMYKcmyk(64.5%, 78%, 0%, 44.7%)
CIE-LABlab(22.23, 40.83, -57.42)
CIE-LCHlch(22.23, 70.46, 305.42°)
OKLaboklab(34.77% 0.032 -0.1657)
OKLCHoklch(34.77% 0.169 280.9)
XYZxyz(6.6116, 3.5807, 25.5369)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F8D #7A8D1F
analogous
#1F438D #321F8D #691F8D
triadic
#321F8D #8D321F #1F8D32
tetradic
#321F8D #8D1F43 #7A8D1F #1F8D69
square
#321F8D #8D1F43 #7A8D1F #1F8D69
split-complementary
#321F8D #8D691F #438D1F
monochromatic
#0E0929 #20145B #321F8D #442ABF #664ED8

Accessibility & contrast

On white

12.24
#321F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#321F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F8D
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F8D#FFFFFF#000000##FFFFFF
##321F8D1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #321f8d;
/* rgb */ color: rgb(50, 31, 141);
/* oklch */ color: oklch(34.8% 0.169 280.9);
Tailwind
colors: {
  custom: {
    50: '#775eaf',
    500: '#321f8d',
    950: '#000000',
  },
}
SCSS
$custom: #321f8d;
$custom-light: #775eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#321f8d",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 250.364,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34767,
    "c": 0.16874,
    "h": 280.9
  },
  "luminance": 0.03581
}

Semantic roles & 50–950 ramp

primary
#321F8D
secondary
#A8BB4D
accent
#E741CA
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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