#321D51#321D51

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

Color values

HEX#321D51
RGBrgb(50, 29, 81)
HSLhsl(264, 47%, 22%)
HSVhsv(264, 64%, 32%)
CMYKcmyk(38.3%, 64.2%, 0%, 68.2%)
CIE-LABlab(16.26, 23.06, -28.24)
CIE-LCHlch(16.26, 36.46, 309.23°)
OKLaboklab(28.79% 0.0447 -0.0801)
OKLCHoklch(28.79% 0.092 299.2)
XYZxyz(3.2396, 2.1509, 8.0275)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D51 #3C511D
analogous
#1D2251 #321D51 #4C1D51
triadic
#321D51 #51321D #1D5132
tetradic
#321D51 #511D22 #3C511D #1D514C
square
#321D51 #511D22 #3C511D #1D514C
split-complementary
#321D51 #514C1D #22511D
monochromatic
#0E0817 #160D24 #321D51 #4E2D7E #6A3DAB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##321D51#FFFFFF#000000##FFFFFF
##321D511.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)
#032853
Deuteranopia (green-blind)
#0C2850
Tritanopia (blue-blind)
#2B2833
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #321d51;
/* rgb */ color: rgb(50, 29, 81);
/* oklch */ color: oklch(28.8% 0.092 299.2);
Tailwind
colors: {
  custom: {
    50: '#6c5a82',
    500: '#321d51',
    950: '#000000',
  },
}
SCSS
$custom: #321d51;
$custom-light: #6c5a82;
$custom-dark: #000000;
JSON
{
  "hex": "#321d51",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 81
  },
  "hsl": {
    "h": 264.231,
    "s": 47.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28789,
    "c": 0.09174,
    "h": 299.2
  },
  "luminance": 0.02151
}

Semantic roles & 50–950 ramp

primary
#321D51
secondary
#6B8644
accent
#D751A1
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040A
muted
#7A797C

Preview Lab

Preview with #321D51

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

Preview Lab → · Contrast checker → · Palette generator →

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