#321C63#321C63

#321C63 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.2% C 0.118 H 292.0°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#321C63
RGBrgb(50, 28, 99)
HSLhsl(259, 56%, 25%)
HSVhsv(259, 72%, 39%)
CMYKcmyk(49.5%, 71.7%, 0%, 61.2%)
CIE-LABlab(17.50, 29.25, -38.28)
CIE-LCHlch(17.50, 48.17, 307.38°)
OKLaboklab(30.16% 0.0443 -0.1096)
OKLCHoklch(30.16% 0.118 292)
XYZxyz(3.9821, 2.4093, 12.0572)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C63 #4D631C
analogous
#1C2963 #321C63 #561C63
triadic
#321C63 #63321C #1C6332
tetradic
#321C63 #631C29 #4D631C #1C6356
square
#321C63 #631C29 #4D631C #1C6356
split-complementary
#321C63 #63561C #29631C
monochromatic
#0C0718 #1A0F33 #321C63 #4A2993 #6237C2

Accessibility & contrast

On white

14.17
#321C63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#321C63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C63
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C63#FFFFFF#000000##FFFFFF
##321C631.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C65
Deuteranopia (green-blind)
#002962
Tritanopia (blue-blind)
#232D3D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #321c63;
/* rgb */ color: rgb(50, 28, 99);
/* oklch */ color: oklch(30.2% 0.118 292.0);
Tailwind
colors: {
  custom: {
    50: '#6f5a90',
    500: '#321c63',
    950: '#000000',
  },
}
SCSS
$custom: #321c63;
$custom-light: #6f5a90;
$custom-dark: #000000;
JSON
{
  "hex": "#321c63",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 99
  },
  "hsl": {
    "h": 258.592,
    "s": 55.906,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30157,
    "c": 0.11821,
    "h": 292
  },
  "luminance": 0.02409
}

Semantic roles & 50–950 ramp

primary
#321C63
secondary
#7E9843
accent
#DF49B1
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #321C63

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

Preview Lab → · Contrast checker → · Palette generator →

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