#321C71#321C71

#321C71 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.137 H 287.7°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#321C71
RGBrgb(50, 28, 113)
HSLhsl(256, 60%, 28%)
HSVhsv(256, 75%, 44%)
CMYKcmyk(55.8%, 75.2%, 0%, 55.7%)
CIE-LABlab(18.80, 33.65, -45.30)
CIE-LCHlch(18.80, 56.43, 306.60°)
OKLaboklab(31.49% 0.0415 -0.1302)
OKLCHoklch(31.49% 0.137 287.7)
XYZxyz(4.7104, 2.7006, 15.8927)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C71 #5B711C
analogous
#1C3171 #321C71 #5C1C71
triadic
#321C71 #71321C #1C7132
tetradic
#321C71 #711C31 #5B711C #1C715C
square
#321C71 #711C31 #5B711C #1C715C
split-complementary
#321C71 #715C1C #31711C
monochromatic
#0B0619 #1C1040 #321C71 #4828A2 #6039CE

Accessibility & contrast

On white

13.63
#321C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#321C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C71
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C71#FFFFFF#000000##FFFFFF
##321C711.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#002B6F
Tritanopia (blue-blind)
#193344
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321c71;
/* rgb */ color: rgb(50, 28, 113);
/* oklch */ color: oklch(31.5% 0.137 287.7);
Tailwind
colors: {
  custom: {
    50: '#715a9b',
    500: '#321c71',
    950: '#000000',
  },
}
SCSS
$custom: #321c71;
$custom-light: #715a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#321c71",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 113
  },
  "hsl": {
    "h": 255.529,
    "s": 60.284,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31486,
    "c": 0.13666,
    "h": 287.7
  },
  "luminance": 0.02701
}

Semantic roles & 50–950 ramp

primary
#321C71
secondary
#8CA643
accent
#E344BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321C71

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

Preview Lab → · Contrast checker → · Palette generator →

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