#321681#321681

#321681 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.163 H 284.7°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#321681
RGBrgb(50, 22, 129)
HSLhsl(256, 71%, 30%)
HSVhsv(256, 83%, 51%)
CMYKcmyk(61.2%, 82.9%, 0%, 49.4%)
CIE-LABlab(19.38, 41.65, -54.59)
CIE-LCHlch(19.38, 68.67, 307.34°)
OKLaboklab(32.39% 0.0414 -0.1573)
OKLCHoklch(32.39% 0.163 284.7)
XYZxyz(5.5635, 2.8366, 21.0190)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321681 #658116
analogous
#163081 #321681 #681681
triadic
#321681 #813216 #168132
tetradic
#321681 #811630 #658116 #168168
square
#321681 #811630 #658116 #168168
split-complementary
#321681 #816816 #308116
monochromatic
#0A041A #1E0D4D #321681 #461FB5 #6135DD

Accessibility & contrast

On white

13.40
#321681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#321681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321681
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321681#FFFFFF#000000##FFFFFF
##3216811.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#01364C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #321681;
/* rgb */ color: rgb(50, 22, 129);
/* oklch */ color: oklch(32.4% 0.163 284.7);
Tailwind
colors: {
  custom: {
    50: '#7558a7',
    500: '#321681',
    950: '#000000',
  },
}
SCSS
$custom: #321681;
$custom-light: #7558a7;
$custom-dark: #000000;
JSON
{
  "hex": "#321681",
  "rgb": {
    "r": 50,
    "g": 22,
    "b": 129
  },
  "hsl": {
    "h": 255.701,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32389,
    "c": 0.16269,
    "h": 284.7
  },
  "luminance": 0.02837
}

Semantic roles & 50–950 ramp

primary
#321681
secondary
#96B63D
accent
#EE3ABF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #321681

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

Preview Lab → · Contrast checker → · Palette generator →

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