#321D55#321D55

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

Color values

HEX#321D55
RGBrgb(50, 29, 85)
HSLhsl(263, 49%, 22%)
HSVhsv(263, 66%, 33%)
CMYKcmyk(41.2%, 65.9%, 0%, 66.7%)
CIE-LABlab(16.57, 24.28, -30.46)
CIE-LCHlch(16.57, 38.95, 308.56°)
OKLaboklab(29.11% 0.0446 -0.0866)
OKLCHoklch(29.11% 0.097 297.2)
XYZxyz(3.3940, 2.2127, 8.8408)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D55 #40551D
analogous
#1D2455 #321D55 #4E1D55
triadic
#321D55 #55321D #1D5532
tetradic
#321D55 #551D24 #40551D #1D554E
square
#321D55 #551D24 #40551D #1D554E
split-complementary
#321D55 #554E1D #24551D
monochromatic
#0D0817 #170D27 #321D55 #4D2D83 #683CB0

Accessibility & contrast

On white

14.56
#321D55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#321D55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D55
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D55#FFFFFF#000000##FFFFFF
##321D551.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002957
Deuteranopia (green-blind)
#052854
Tritanopia (blue-blind)
#2A2936
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321d55;
/* rgb */ color: rgb(50, 29, 85);
/* oklch */ color: oklch(29.1% 0.097 297.2);
Tailwind
colors: {
  custom: {
    50: '#6d5a85',
    500: '#321d55',
    950: '#000000',
  },
}
SCSS
$custom: #321d55;
$custom-light: #6d5a85;
$custom-dark: #000000;
JSON
{
  "hex": "#321d55",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 85
  },
  "hsl": {
    "h": 262.5,
    "s": 49.123,
    "l": 22.353
  },
  "oklch": {
    "l": 0.2911,
    "c": 0.09742,
    "h": 297.2
  },
  "luminance": 0.02213
}

Semantic roles & 50–950 ramp

primary
#321D55
secondary
#708A44
accent
#D94FA5
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #321D55

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

Preview Lab → · Contrast checker → · Palette generator →

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