#321C52#321C52

#321C52 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.095 H 299.1°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#321C52
RGBrgb(50, 28, 82)
HSLhsl(264, 49%, 22%)
HSVhsv(264, 66%, 32%)
CMYKcmyk(39%, 65.9%, 0%, 67.8%)
CIE-LABlab(16.09, 24.01, -29.19)
CIE-LCHlch(16.09, 37.79, 309.44°)
OKLaboklab(28.69% 0.0461 -0.0829)
OKLCHoklch(28.69% 0.095 299.1)
XYZxyz(3.2533, 2.1178, 8.2184)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C52 #3C521C
analogous
#1C2152 #321C52 #4D1C52
triadic
#321C52 #52321C #1C5232
tetradic
#321C52 #521C21 #3C521C #1C524D
square
#321C52 #521C21 #3C521C #1C524D
split-complementary
#321C52 #524D1C #21521C
monochromatic
#0E0817 #160C24 #321C52 #4E2C80 #6A3BAD

Accessibility & contrast

On white

14.75
#321C52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#321C52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C52
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C52#FFFFFF#000000##FFFFFF
##321C521.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002854
Deuteranopia (green-blind)
#082751
Tritanopia (blue-blind)
#2B2834
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #321c52;
/* rgb */ color: rgb(50, 28, 82);
/* oklch */ color: oklch(28.7% 0.095 299.1);
Tailwind
colors: {
  custom: {
    50: '#6d5983',
    500: '#321c52',
    950: '#000000',
  },
}
SCSS
$custom: #321c52;
$custom-light: #6d5983;
$custom-dark: #000000;
JSON
{
  "hex": "#321c52",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 82
  },
  "hsl": {
    "h": 264.444,
    "s": 49.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28692,
    "c": 0.09485,
    "h": 299.1
  },
  "luminance": 0.02118
}

Semantic roles & 50–950 ramp

primary
#321C52
secondary
#6B8842
accent
#D94FA1
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #321C52

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

Preview Lab → · Contrast checker → · Palette generator →

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