#321F82#321F82

#321F82 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.155 H 283.0°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#321F82
RGBrgb(50, 31, 130)
HSLhsl(252, 61%, 32%)
HSVhsv(252, 76%, 51%)
CMYKcmyk(61.5%, 76.2%, 0%, 49%)
CIE-LABlab(21.09, 37.35, -52.40)
CIE-LCHlch(21.09, 64.35, 305.48°)
OKLaboklab(33.62% 0.0348 -0.151)
OKLCHoklch(33.62% 0.155 283)
XYZxyz(5.8334, 3.2694, 21.4384)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F82 #6F821F
analogous
#1F3E82 #321F82 #641F82
triadic
#321F82 #82321F #1F8232
tetradic
#321F82 #821F3E #6F821F #1F8264
square
#321F82 #821F3E #6F821F #1F8264
split-complementary
#321F82 #82641F #3E821F
monochromatic
#0C071F #1F1351 #321F82 #452BB3 #6348D3

Accessibility & contrast

On white

12.70
#321F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#321F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F82
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F82#FFFFFF#000000##FFFFFF
##321F821.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#002F80
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #321f82;
/* rgb */ color: rgb(50, 31, 130);
/* oklch */ color: oklch(33.6% 0.155 283.0);
Tailwind
colors: {
  custom: {
    50: '#745da7',
    500: '#321f82',
    950: '#000000',
  },
}
SCSS
$custom: #321f82;
$custom-light: #745da7;
$custom-dark: #000000;
JSON
{
  "hex": "#321f82",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 251.515,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3362,
    "c": 0.15499,
    "h": 283
  },
  "luminance": 0.0327
}

Semantic roles & 50–950 ramp

primary
#321F82
secondary
#A0B548
accent
#E543C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321F82

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

Preview Lab → · Contrast checker → · Palette generator →

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