#321794#321794

#321794 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.184 H 280.7°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#321794
RGBrgb(50, 23, 148)
HSLhsl(253, 73%, 34%)
HSVhsv(253, 84%, 58%)
CMYKcmyk(66.2%, 84.5%, 0%, 42%)
CIE-LABlab(21.68, 46.81, -62.67)
CIE-LCHlch(21.68, 78.22, 306.75°)
OKLaboklab(34.62% 0.0342 -0.1809)
OKLCHoklch(34.62% 0.184 280.7)
XYZxyz(6.9654, 3.4285, 28.3059)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321794 #799417
analogous
#173A94 #321794 #701794
triadic
#321794 #943217 #179432
tetradic
#321794 #94173A #799417 #179470
square
#321794 #94173A #799417 #179470
split-complementary
#321794 #947017 #3A9417
monochromatic
#0E072A #200F5F #321794 #441FC9 #6644E2

Accessibility & contrast

On white

12.46
#321794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#321794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321794
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321794#FFFFFF#000000##FFFFFF
##3217941.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003897
Deuteranopia (green-blind)
#002F92
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #321794;
/* rgb */ color: rgb(50, 23, 148);
/* oklch */ color: oklch(34.6% 0.184 280.7);
Tailwind
colors: {
  custom: {
    50: '#795ab5',
    500: '#321794',
    950: '#000000',
  },
}
SCSS
$custom: #321794;
$custom-light: #795ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#321794",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 252.96,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34615,
    "c": 0.18409,
    "h": 280.7
  },
  "luminance": 0.03429
}

Semantic roles & 50–950 ramp

primary
#321794
secondary
#A7C344
accent
#F038C8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321794

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

Preview Lab → · Contrast checker → · Palette generator →

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