#321F41#321F41

#321F41 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.0% C 0.065 H 308.5°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#321F41
RGBrgb(50, 31, 65)
HSLhsl(274, 35%, 19%)
HSVhsv(274, 52%, 25%)
CMYKcmyk(23.1%, 52.3%, 0%, 74.5%)
CIE-LABlab(15.69, 17.06, -18.14)
CIE-LCHlch(15.69, 24.90, 313.23°)
OKLaboklab(28.02% 0.0403 -0.0506)
OKLCHoklch(28.02% 0.065 308.5)
XYZxyz(2.7593, 2.0398, 5.2484)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F41 #2E411F
analogous
#211F41 #321F41 #411F3F
triadic
#321F41 #41321F #1F4132
tetradic
#321F41 #41211F #2E411F #1F3F41
square
#321F41 #41211F #2E411F #1F3F41
split-complementary
#321F41 #3F411F #1F4121
monochromatic
#100A15 #120B18 #321F41 #52336A #724794

Accessibility & contrast

On white

14.91
#321F41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#321F41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F41
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F41#FFFFFF#000000##FFFFFF
##321F411.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172642
Deuteranopia (green-blind)
#1C2740
Tritanopia (blue-blind)
#30242C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #321f41;
/* rgb */ color: rgb(50, 31, 65);
/* oklch */ color: oklch(28.0% 0.065 308.5);
Tailwind
colors: {
  custom: {
    50: '#6b5b76',
    500: '#321f41',
    950: '#000000',
  },
}
SCSS
$custom: #321f41;
$custom-light: #6b5b76;
$custom-dark: #000000;
JSON
{
  "hex": "#321f41",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 65
  },
  "hsl": {
    "h": 273.529,
    "s": 35.417,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28022,
    "c": 0.06467,
    "h": 308.5
  },
  "luminance": 0.0204
}

Semantic roles & 50–950 ramp

primary
#321F41
secondary
#5B7547
accent
#CB5C8D
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060408
muted
#7A797B

Preview Lab

Preview with #321F41

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

Preview Lab → · Contrast checker → · Palette generator →

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