#321C70#321C70

#321C70 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.135 H 287.9°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#321C70
RGBrgb(50, 28, 112)
HSLhsl(256, 60%, 27%)
HSVhsv(256, 75%, 44%)
CMYKcmyk(55.4%, 75%, 0%, 56.1%)
CIE-LABlab(18.71, 33.33, -44.81)
CIE-LCHlch(18.71, 55.85, 306.64°)
OKLaboklab(31.39% 0.0417 -0.1288)
OKLCHoklch(31.39% 0.135 287.9)
XYZxyz(4.6544, 2.6782, 15.5978)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C70 #5A701C
analogous
#1C3070 #321C70 #5C1C70
triadic
#321C70 #70321C #1C7032
tetradic
#321C70 #701C30 #5A701C #1C705C
square
#321C70 #701C30 #5A701C #1C705C
split-complementary
#321C70 #705C1C #30701C
monochromatic
#0B0618 #1C103F #321C70 #4828A1 #6039CD

Accessibility & contrast

On white

13.68
#321C70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321C70
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C70#FFFFFF#000000##FFFFFF
##321C701.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#002B6E
Tritanopia (blue-blind)
#1A3244
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321c70;
/* rgb */ color: rgb(50, 28, 112);
/* oklch */ color: oklch(31.4% 0.135 287.9);
Tailwind
colors: {
  custom: {
    50: '#715a9a',
    500: '#321c70',
    950: '#000000',
  },
}
SCSS
$custom: #321c70;
$custom-light: #715a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#321c70",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 112
  },
  "hsl": {
    "h": 255.714,
    "s": 60,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31387,
    "c": 0.13537,
    "h": 287.9
  },
  "luminance": 0.02678
}

Semantic roles & 50–950 ramp

primary
#321C70
secondary
#8BA543
accent
#E345BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321C70

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

Preview Lab → · Contrast checker → · Palette generator →

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