#321C74#321C74

#321C74 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.141 H 286.9°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#321C74
RGBrgb(50, 28, 116)
HSLhsl(255, 61%, 28%)
HSVhsv(255, 76%, 45%)
CMYKcmyk(56.9%, 75.9%, 0%, 54.5%)
CIE-LABlab(19.10, 34.59, -46.75)
CIE-LCHlch(19.10, 58.16, 306.50°)
OKLaboklab(31.78% 0.0408 -0.1345)
OKLCHoklch(31.78% 0.141 286.9)
XYZxyz(4.8821, 2.7693, 16.7969)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C74 #5E741C
analogous
#1C3274 #321C74 #5E1C74
triadic
#321C74 #74321C #1C7432
tetradic
#321C74 #741C32 #5E741C #1C745E
square
#321C74 #741C32 #5E741C #1C745E
split-complementary
#321C74 #745E1C #32741C
monochromatic
#0B0619 #1D1043 #321C74 #4728A5 #603BD0

Accessibility & contrast

On white

13.51
#321C74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#321C74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C74
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C74#FFFFFF#000000##FFFFFF
##321C741.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002C72
Tritanopia (blue-blind)
#163446
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321c74;
/* rgb */ color: rgb(50, 28, 116);
/* oklch */ color: oklch(31.8% 0.141 286.9);
Tailwind
colors: {
  custom: {
    50: '#725b9d',
    500: '#321c74',
    950: '#000000',
  },
}
SCSS
$custom: #321c74;
$custom-light: #725b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#321c74",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 116
  },
  "hsl": {
    "h": 255,
    "s": 61.111,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31782,
    "c": 0.14052,
    "h": 286.9
  },
  "luminance": 0.0277
}

Semantic roles & 50–950 ramp

primary
#321C74
secondary
#8FA843
accent
#E444BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321C74

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

Preview Lab → · Contrast checker → · Palette generator →

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