#321F50#321F50

#321F50 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.1% C 0.087 H 298.8°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#321F50
RGBrgb(50, 31, 80)
HSLhsl(263, 44%, 22%)
HSVhsv(263, 61%, 31%)
CMYKcmyk(37.5%, 61.2%, 0%, 68.6%)
CIE-LABlab(16.69, 21.45, -26.88)
CIE-LCHlch(16.69, 34.39, 308.59°)
OKLaboklab(29.08% 0.0418 -0.0761)
OKLCHoklch(29.08% 0.087 298.8)
XYZxyz(3.2530, 2.2372, 7.8483)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F50 #3D501F
analogous
#1F2550 #321F50 #4B1F50
triadic
#321F50 #50321F #1F5032
tetradic
#321F50 #501F25 #3D501F #1F504B
square
#321F50 #501F25 #3D501F #1F504B
split-complementary
#321F50 #504B1F #25501F
monochromatic
#0E0916 #160E24 #321F50 #4E307C #6941A8

Accessibility & contrast

On white

14.51
#321F50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#321F50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F50
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F50#FFFFFF#000000##FFFFFF
##321F501.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092952
Deuteranopia (green-blind)
#10294F
Tritanopia (blue-blind)
#2B2934
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321f50;
/* rgb */ color: rgb(50, 31, 80);
/* oklch */ color: oklch(29.1% 0.087 298.8);
Tailwind
colors: {
  custom: {
    50: '#6c5b81',
    500: '#321f50',
    950: '#000000',
  },
}
SCSS
$custom: #321f50;
$custom-light: #6c5b81;
$custom-dark: #000000;
JSON
{
  "hex": "#321f50",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 80
  },
  "hsl": {
    "h": 263.265,
    "s": 44.144,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29079,
    "c": 0.08682,
    "h": 298.8
  },
  "luminance": 0.02237
}

Semantic roles & 50–950 ramp

primary
#321F50
secondary
#6C8546
accent
#D454A2
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07040A
muted
#7A797C

Preview Lab

Preview with #321F50

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

Preview Lab → · Contrast checker → · Palette generator →

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