#321F80#321F80

#321F80 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.152 H 283.4°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#321F80
RGBrgb(50, 31, 128)
HSLhsl(252, 61%, 31%)
HSVhsv(252, 76%, 50%)
CMYKcmyk(60.9%, 75.8%, 0%, 49.8%)
CIE-LABlab(20.89, 36.71, -51.47)
CIE-LCHlch(20.89, 63.22, 305.50°)
OKLaboklab(33.42% 0.0353 -0.1483)
OKLCHoklch(33.42% 0.152 283.4)
XYZxyz(5.7005, 3.2162, 20.7383)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F80 #6D801F
analogous
#1F3C80 #321F80 #621F80
triadic
#321F80 #80321F #1F8032
tetradic
#321F80 #801F3C #6D801F #1F8062
square
#321F80 #801F3C #6D801F #1F8062
split-complementary
#321F80 #80621F #3C801F
monochromatic
#0C071D #1F134F #321F80 #452BB1 #6247D2

Accessibility & contrast

On white

12.78
#321F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#321F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F80
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F80#FFFFFF#000000##FFFFFF
##321F801.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#013A4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #321f80;
/* rgb */ color: rgb(50, 31, 128);
/* oklch */ color: oklch(33.4% 0.152 283.4);
Tailwind
colors: {
  custom: {
    50: '#745da6',
    500: '#321f80',
    950: '#000000',
  },
}
SCSS
$custom: #321f80;
$custom-light: #745da6;
$custom-dark: #000000;
JSON
{
  "hex": "#321f80",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 251.753,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33416,
    "c": 0.15245,
    "h": 283.4
  },
  "luminance": 0.03217
}

Semantic roles & 50–950 ramp

primary
#321F80
secondary
#9EB348
accent
#E444C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321F80

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

Preview Lab → · Contrast checker → · Palette generator →

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