#321D56#321D56

#321D56 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.2% C 0.099 H 296.8°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#321D56
RGBrgb(50, 29, 86)
HSLhsl(262, 50%, 23%)
HSVhsv(262, 66%, 34%)
CMYKcmyk(41.9%, 66.3%, 0%, 66.3%)
CIE-LABlab(16.64, 24.59, -31.00)
CIE-LCHlch(16.64, 39.57, 308.41°)
OKLaboklab(29.19% 0.0445 -0.0882)
OKLCHoklch(29.19% 0.099 296.8)
XYZxyz(3.4340, 2.2287, 9.0515)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D56 #41561D
analogous
#1D2556 #321D56 #4E1D56
triadic
#321D56 #56321D #1D5632
tetradic
#321D56 #561D25 #41561D #1D564E
square
#321D56 #561D25 #41561D #1D564E
split-complementary
#321D56 #564E1D #25561D
monochromatic
#0D0817 #170E28 #321D56 #4D2C84 #673CB2

Accessibility & contrast

On white

14.52
#321D56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321D56
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D56#FFFFFF#000000##FFFFFF
##321D561.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#042855
Tritanopia (blue-blind)
#292A36
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321d56;
/* rgb */ color: rgb(50, 29, 86);
/* oklch */ color: oklch(29.2% 0.099 296.8);
Tailwind
colors: {
  custom: {
    50: '#6d5a86',
    500: '#321d56',
    950: '#000000',
  },
}
SCSS
$custom: #321d56;
$custom-light: #6d5a86;
$custom-dark: #000000;
JSON
{
  "hex": "#321d56",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 86
  },
  "hsl": {
    "h": 262.105,
    "s": 49.565,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29192,
    "c": 0.09883,
    "h": 296.8
  },
  "luminance": 0.02229
}

Semantic roles & 50–950 ramp

primary
#321D56
secondary
#718B44
accent
#D94FA6
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #321D56

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

Preview Lab → · Contrast checker → · Palette generator →

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