#321F54#321F54

#321F54 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.4% C 0.093 H 296.8°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#321F54
RGBrgb(50, 31, 84)
HSLhsl(262, 46%, 23%)
HSVhsv(262, 63%, 33%)
CMYKcmyk(40.5%, 63.1%, 0%, 67.1%)
CIE-LABlab(16.98, 22.68, -29.12)
CIE-LCHlch(16.98, 36.90, 307.91°)
OKLaboklab(29.39% 0.0418 -0.0827)
OKLCHoklch(29.39% 0.093 296.8)
XYZxyz(3.4052, 2.2981, 8.6500)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F54 #41541F
analogous
#1F2754 #321F54 #4C1F54
triadic
#321F54 #54321F #1F5432
tetradic
#321F54 #541F27 #41541F #1F544C
square
#321F54 #541F27 #41541F #1F544C
split-complementary
#321F54 #544C1F #27541F
monochromatic
#0D0816 #170F27 #321F54 #4D2F81 #6740AD

Accessibility & contrast

On white

14.39
#321F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#321F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F54
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F54#FFFFFF#000000##FFFFFF
##321F541.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042A56
Deuteranopia (green-blind)
#0B2953
Tritanopia (blue-blind)
#2A2A36
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321f54;
/* rgb */ color: rgb(50, 31, 84);
/* oklch */ color: oklch(29.4% 0.093 296.8);
Tailwind
colors: {
  custom: {
    50: '#6d5b84',
    500: '#321f54',
    950: '#000000',
  },
}
SCSS
$custom: #321f54;
$custom-light: #6d5b84;
$custom-dark: #000000;
JSON
{
  "hex": "#321f54",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 84
  },
  "hsl": {
    "h": 261.509,
    "s": 46.087,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29389,
    "c": 0.09265,
    "h": 296.8
  },
  "luminance": 0.02298
}

Semantic roles & 50–950 ramp

primary
#321F54
secondary
#718946
accent
#D652A7
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #321F54

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

Preview Lab → · Contrast checker → · Palette generator →

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