#321C8C#321C8C

#321C8C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.170 H 281.6°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#321C8C
RGBrgb(50, 28, 140)
HSLhsl(252, 67%, 33%)
HSVhsv(252, 80%, 55%)
CMYKcmyk(64.3%, 80%, 0%, 45.1%)
CIE-LABlab(21.59, 42.07, -57.86)
CIE-LCHlch(21.59, 71.54, 306.02°)
OKLaboklab(34.28% 0.0342 -0.1669)
OKLCHoklch(34.28% 0.17 281.6)
XYZxyz(6.4628, 3.4016, 25.1219)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C8C #768C1C
analogous
#1C3E8C #321C8C #6A1C8C
triadic
#321C8C #8C321C #1C8C32
tetradic
#321C8C #8C1C3E #768C1C #1C8C6A
square
#321C8C #8C1C3E #768C1C #1C8C6A
split-complementary
#321C8C #8C6A1C #3E8C1C
monochromatic
#0E0826 #201259 #321C8C #4426BF #6548DA

Accessibility & contrast

On white

12.50
#321C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#321C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C8C
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C8C#FFFFFF#000000##FFFFFF
##321C8C1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #321c8c;
/* rgb */ color: rgb(50, 28, 140);
/* oklch */ color: oklch(34.3% 0.170 281.6);
Tailwind
colors: {
  custom: {
    50: '#775caf',
    500: '#321c8c',
    950: '#000000',
  },
}
SCSS
$custom: #321c8c;
$custom-light: #775caf;
$custom-dark: #000000;
JSON
{
  "hex": "#321c8c",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 251.786,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34282,
    "c": 0.17041,
    "h": 281.6
  },
  "luminance": 0.03402
}

Semantic roles & 50–950 ramp

primary
#321C8C
secondary
#A5BC48
accent
#EA3EC8
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #321C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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