#321C55#321C55

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

Color values

HEX#321C55
RGBrgb(50, 28, 85)
HSLhsl(263, 50%, 22%)
HSVhsv(263, 67%, 33%)
CMYKcmyk(41.2%, 67.1%, 0%, 66.7%)
CIE-LABlab(16.33, 24.92, -30.84)
CIE-LCHlch(16.33, 39.65, 308.93°)
OKLaboklab(28.94% 0.046 -0.0877)
OKLCHoklch(28.94% 0.099 297.6)
XYZxyz(3.3699, 2.1644, 8.8328)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C55 #3F551C
analogous
#1C2355 #321C55 #4F1C55
triadic
#321C55 #55321C #1C5532
tetradic
#321C55 #551C23 #3F551C #1C554F
square
#321C55 #551C23 #3F551C #1C554F
split-complementary
#321C55 #554F1C #23551C
monochromatic
#0E0817 #170D27 #321C55 #4D2B83 #683AB1

Accessibility & contrast

On white

14.66
#321C55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321C55
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C55#FFFFFF#000000##FFFFFF
##321C551.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002957
Deuteranopia (green-blind)
#032854
Tritanopia (blue-blind)
#2A2935
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #321c55;
/* rgb */ color: rgb(50, 28, 85);
/* oklch */ color: oklch(28.9% 0.099 297.6);
Tailwind
colors: {
  custom: {
    50: '#6d5985',
    500: '#321c55',
    950: '#000000',
  },
}
SCSS
$custom: #321c55;
$custom-light: #6d5985;
$custom-dark: #000000;
JSON
{
  "hex": "#321c55",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 85
  },
  "hsl": {
    "h": 263.158,
    "s": 50.442,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28937,
    "c": 0.09905,
    "h": 297.6
  },
  "luminance": 0.02164
}

Semantic roles & 50–950 ramp

primary
#321C55
secondary
#6F8B42
accent
#DA4EA4
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321C55

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

Preview Lab → · Contrast checker → · Palette generator →

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