#321C72#321C72

#321C72 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.138 H 287.4°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#321C72
RGBrgb(50, 28, 114)
HSLhsl(255, 61%, 28%)
HSVhsv(255, 75%, 45%)
CMYKcmyk(56.1%, 75.4%, 0%, 55.3%)
CIE-LABlab(18.90, 33.96, -45.79)
CIE-LCHlch(18.90, 57.01, 306.57°)
OKLaboklab(31.58% 0.0412 -0.1316)
OKLCHoklch(31.58% 0.138 287.4)
XYZxyz(4.7670, 2.7233, 16.1908)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C72 #5C721C
analogous
#1C3172 #321C72 #5D1C72
triadic
#321C72 #72321C #1C7232
tetradic
#321C72 #721C31 #5C721C #1C725D
square
#321C72 #721C31 #5C721C #1C725D
split-complementary
#321C72 #725D1C #31721C
monochromatic
#0B0619 #1C1041 #321C72 #4828A3 #603ACF

Accessibility & contrast

On white

13.59
#321C72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321C72
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C72#FFFFFF#000000##FFFFFF
##321C721.0013.591.5413.59
#FFFFFF13.591.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#183345
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321c72;
/* rgb */ color: rgb(50, 28, 114);
/* oklch */ color: oklch(31.6% 0.138 287.4);
Tailwind
colors: {
  custom: {
    50: '#725a9b',
    500: '#321c72',
    950: '#000000',
  },
}
SCSS
$custom: #321c72;
$custom-light: #725a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#321c72",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 114
  },
  "hsl": {
    "h": 255.349,
    "s": 60.563,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31584,
    "c": 0.13795,
    "h": 287.4
  },
  "luminance": 0.02724
}

Semantic roles & 50–950 ramp

primary
#321C72
secondary
#8DA643
accent
#E444BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321C72

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

Preview Lab → · Contrast checker → · Palette generator →

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