#321878#321878

#321878 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.150 H 286.6°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#321878
RGBrgb(50, 24, 120)
HSLhsl(256, 67%, 28%)
HSVhsv(256, 80%, 47%)
CMYKcmyk(58.3%, 80%, 0%, 52.9%)
CIE-LABlab(18.74, 37.97, -49.90)
CIE-LCHlch(18.74, 62.71, 307.27°)
OKLaboklab(31.66% 0.0429 -0.1437)
OKLCHoklch(31.66% 0.15 286.6)
XYZxyz(5.0312, 2.6872, 18.0192)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321878 #5E7818
analogous
#182E78 #321878 #621878
triadic
#321878 #783218 #187832
tetradic
#321878 #78182E #5E7818 #187862
square
#321878 #78182E #5E7818 #187862
split-complementary
#321878 #786218 #2E7818
monochromatic
#0B051A #1D0E45 #321878 #4722AB #6034D6

Accessibility & contrast

On white

13.66
#321878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321878
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321878#FFFFFF#000000##FFFFFF
##3218781.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307B
Deuteranopia (green-blind)
#002B76
Tritanopia (blue-blind)
#113447
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321878;
/* rgb */ color: rgb(50, 24, 120);
/* oklch */ color: oklch(31.7% 0.150 286.6);
Tailwind
colors: {
  custom: {
    50: '#7358a0',
    500: '#321878',
    950: '#000000',
  },
}
SCSS
$custom: #321878;
$custom-light: #7358a0;
$custom-dark: #000000;
JSON
{
  "hex": "#321878",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 256.25,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31659,
    "c": 0.14994,
    "h": 286.6
  },
  "luminance": 0.02687
}

Semantic roles & 50–950 ramp

primary
#321878
secondary
#8FAD3F
accent
#EA3EBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #321878

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

Preview Lab → · Contrast checker → · Palette generator →

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