#321C56#321C56

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

Color values

HEX#321C56
RGBrgb(50, 28, 86)
HSLhsl(263, 51%, 22%)
HSVhsv(263, 67%, 34%)
CMYKcmyk(41.9%, 67.4%, 0%, 66.3%)
CIE-LABlab(16.41, 25.22, -31.39)
CIE-LCHlch(16.41, 40.27, 308.78°)
OKLaboklab(29.02% 0.0459 -0.0893)
OKLCHoklch(29.02% 0.1 297.2)
XYZxyz(3.4099, 2.1804, 9.0435)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C56 #40561C
analogous
#1C2356 #321C56 #4F1C56
triadic
#321C56 #56321C #1C5632
tetradic
#321C56 #561C23 #40561C #1C564F
square
#321C56 #561C23 #40561C #1C564F
split-complementary
#321C56 #564F1C #23561C
monochromatic
#0D0817 #170D28 #321C56 #4D2B84 #683AB2

Accessibility & contrast

On white

14.62
#321C56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321C56
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C56#FFFFFF#000000##FFFFFF
##321C561.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#022855
Tritanopia (blue-blind)
#292936
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321c56;
/* rgb */ color: rgb(50, 28, 86);
/* oklch */ color: oklch(29.0% 0.100 297.2);
Tailwind
colors: {
  custom: {
    50: '#6d5986',
    500: '#321c56',
    950: '#000000',
  },
}
SCSS
$custom: #321c56;
$custom-light: #6d5986;
$custom-dark: #000000;
JSON
{
  "hex": "#321c56",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 86
  },
  "hsl": {
    "h": 262.759,
    "s": 50.877,
    "l": 22.353
  },
  "oklch": {
    "l": 0.2902,
    "c": 0.10044,
    "h": 297.2
  },
  "luminance": 0.02181
}

Semantic roles & 50–950 ramp

primary
#321C56
secondary
#708C42
accent
#DA4DA5
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321C56

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

Preview Lab → · Contrast checker → · Palette generator →

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