#321979#321979

#321979 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.150 H 286.2°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#321979
RGBrgb(50, 25, 121)
HSLhsl(256, 66%, 29%)
HSVhsv(256, 79%, 47%)
CMYKcmyk(58.7%, 79.3%, 0%, 52.5%)
CIE-LABlab(19.03, 37.76, -50.07)
CIE-LCHlch(19.03, 62.72, 307.02°)
OKLaboklab(31.89% 0.0419 -0.1442)
OKLCHoklch(31.89% 0.15 286.2)
XYZxyz(5.1132, 2.7536, 18.3475)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321979 #607919
analogous
#193079 #321979 #621979
triadic
#321979 #793219 #197932
tetradic
#321979 #791930 #607919 #197962
square
#321979 #791930 #607919 #197962
split-complementary
#321979 #796219 #307919
monochromatic
#0A0519 #1D0F46 #321979 #4723AC #6037D6

Accessibility & contrast

On white

13.54
#321979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#321979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321979
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321979#FFFFFF#000000##FFFFFF
##3219791.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321979;
/* rgb */ color: rgb(50, 25, 121);
/* oklch */ color: oklch(31.9% 0.150 286.2);
Tailwind
colors: {
  custom: {
    50: '#7359a1',
    500: '#321979',
    950: '#000000',
  },
}
SCSS
$custom: #321979;
$custom-light: #7359a1;
$custom-dark: #000000;
JSON
{
  "hex": "#321979",
  "rgb": {
    "r": 50,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 255.625,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31889,
    "c": 0.15013,
    "h": 286.2
  },
  "luminance": 0.02754
}

Semantic roles & 50–950 ramp

primary
#321979
secondary
#91AE40
accent
#E93FBD
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321979

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

Preview Lab → · Contrast checker → · Palette generator →

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