#321F4A#321F4A

#321F4A is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.6% C 0.078 H 302.1°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#321F4A
RGBrgb(50, 31, 74)
HSLhsl(267, 41%, 21%)
HSVhsv(267, 58%, 29%)
CMYKcmyk(32.4%, 58.1%, 0%, 71%)
CIE-LABlab(16.27, 19.65, -23.45)
CIE-LCHlch(16.27, 30.59, 309.95°)
OKLaboklab(28.64% 0.0415 -0.0661)
OKLCHoklch(28.64% 0.078 302.1)
XYZxyz(3.0411, 2.1525, 6.7325)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F4A #374A1F
analogous
#1F214A #321F4A #471F4A
triadic
#321F4A #4A321F #1F4A32
tetradic
#321F4A #4A1F21 #374A1F #1F4A47
square
#321F4A #4A1F21 #374A1F #1F4A47
split-complementary
#321F4A #4A471F #214A1F
monochromatic
#0F0916 #150D1F #321F4A #4F3175 #6C43A0

Accessibility & contrast

On white

14.68
#321F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#321F4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F4A
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F4A#FFFFFF#000000##FFFFFF
##321F4A1.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10284B
Deuteranopia (green-blind)
#162849
Tritanopia (blue-blind)
#2D2731
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #321f4a;
/* rgb */ color: rgb(50, 31, 74);
/* oklch */ color: oklch(28.6% 0.078 302.1);
Tailwind
colors: {
  custom: {
    50: '#6b5b7d',
    500: '#321f4a',
    950: '#000000',
  },
}
SCSS
$custom: #321f4a;
$custom-light: #6b5b7d;
$custom-dark: #000000;
JSON
{
  "hex": "#321f4a",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 74
  },
  "hsl": {
    "h": 266.512,
    "s": 40.952,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28635,
    "c": 0.078,
    "h": 302.1
  },
  "luminance": 0.02152
}

Semantic roles & 50–950 ramp

primary
#321F4A
secondary
#667F46
accent
#D1579B
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#070409
muted
#7A797B

Preview Lab

Preview with #321F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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