#321F5A#321F5A

#321F5A is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.9% C 0.101 H 294.3°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#321F5A
RGBrgb(50, 31, 90)
HSLhsl(259, 49%, 24%)
HSVhsv(259, 66%, 35%)
CMYKcmyk(44.4%, 65.6%, 0%, 64.7%)
CIE-LABlab(17.44, 24.55, -32.40)
CIE-LCHlch(17.44, 40.65, 307.15°)
OKLaboklab(29.88% 0.0416 -0.0923)
OKLCHoklch(29.88% 0.101 294.3)
XYZxyz(3.6504, 2.3962, 9.9411)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F5A #475A1F
analogous
#1F295A #321F5A #4F1F5A
triadic
#321F5A #5A321F #1F5A32
tetradic
#321F5A #5A1F29 #475A1F #1F5A4F
square
#321F5A #5A1F29 #475A1F #1F5A4F
split-complementary
#321F5A #5A4F1F #295A1F
monochromatic
#0D0817 #190F2C #321F5A #4B2F88 #653EB5

Accessibility & contrast

On white

14.20
#321F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#321F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F5A
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F5A#FFFFFF#000000##FFFFFF
##321F5A1.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5C
Deuteranopia (green-blind)
#012A59
Tritanopia (blue-blind)
#272C39
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #321f5a;
/* rgb */ color: rgb(50, 31, 90);
/* oklch */ color: oklch(29.9% 0.101 294.3);
Tailwind
colors: {
  custom: {
    50: '#6d5b89',
    500: '#321f5a',
    950: '#000000',
  },
}
SCSS
$custom: #321f5a;
$custom-light: #6d5b89;
$custom-dark: #000000;
JSON
{
  "hex": "#321f5a",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 90
  },
  "hsl": {
    "h": 259.322,
    "s": 48.76,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29875,
    "c": 0.10128,
    "h": 294.3
  },
  "luminance": 0.02396
}

Semantic roles & 50–950 ramp

primary
#321F5A
secondary
#778F46
accent
#D84FAC
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040B
muted
#7A797C

Preview Lab

Preview with #321F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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