#321879#321879

#321879 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.151 H 286.4°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#321879
RGBrgb(50, 24, 121)
HSLhsl(256, 67%, 28%)
HSVhsv(256, 80%, 47%)
CMYKcmyk(58.7%, 80.2%, 0%, 52.5%)
CIE-LABlab(18.85, 38.28, -50.37)
CIE-LCHlch(18.85, 63.26, 307.23°)
OKLaboklab(31.76% 0.0426 -0.145)
OKLCHoklch(31.76% 0.151 286.4)
XYZxyz(5.0922, 2.7116, 18.3405)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321879 #5F7918
analogous
#182E79 #321879 #621879
triadic
#321879 #793218 #187932
tetradic
#321879 #79182E #5F7918 #187962
square
#321879 #79182E #5F7918 #187962
split-complementary
#321879 #796218 #2E7918
monochromatic
#0B051A #1D0E46 #321879 #4722AC #6035D7

Accessibility & contrast

On white

13.62
#321879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#321879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321879
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321879#FFFFFF#000000##FFFFFF
##3218791.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#103448
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321879;
/* rgb */ color: rgb(50, 24, 121);
/* oklch */ color: oklch(31.8% 0.151 286.4);
Tailwind
colors: {
  custom: {
    50: '#7359a1',
    500: '#321879',
    950: '#000000',
  },
}
SCSS
$custom: #321879;
$custom-light: #7359a1;
$custom-dark: #000000;
JSON
{
  "hex": "#321879",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 256.082,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31764,
    "c": 0.15116,
    "h": 286.4
  },
  "luminance": 0.02712
}

Semantic roles & 50–950 ramp

primary
#321879
secondary
#90AE3F
accent
#EA3EBC
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #321879

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

Preview Lab → · Contrast checker → · Palette generator →

#321879 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva