#321686#321686

#321686 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.169 H 283.6°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#321686
RGBrgb(50, 22, 134)
HSLhsl(255, 72%, 31%)
HSVhsv(255, 84%, 53%)
CMYKcmyk(62.7%, 83.6%, 0%, 47.5%)
CIE-LABlab(19.93, 43.13, -56.83)
CIE-LCHlch(19.93, 71.34, 307.19°)
OKLaboklab(32.94% 0.0396 -0.1639)
OKLCHoklch(32.94% 0.169 283.6)
XYZxyz(5.9040, 2.9728, 22.8123)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321686 #6A8616
analogous
#163286 #321686 #6A1686
triadic
#321686 #863216 #168632
tetradic
#321686 #861632 #6A8616 #16866A
square
#321686 #861632 #6A8616 #16866A
split-complementary
#321686 #866A16 #328616
monochromatic
#0B051D #1E0D51 #321686 #461FBB #6238DE

Accessibility & contrast

On white

13.17
#321686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#321686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321686
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321686#FFFFFF#000000##FFFFFF
##3216861.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002C84
Tritanopia (blue-blind)
#00384F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321686;
/* rgb */ color: rgb(50, 22, 134);
/* oklch */ color: oklch(32.9% 0.169 283.6);
Tailwind
colors: {
  custom: {
    50: '#7658aa',
    500: '#321686',
    950: '#000000',
  },
}
SCSS
$custom: #321686;
$custom-light: #7658aa;
$custom-dark: #000000;
JSON
{
  "hex": "#321686",
  "rgb": {
    "r": 50,
    "g": 22,
    "b": 134
  },
  "hsl": {
    "h": 255,
    "s": 71.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3294,
    "c": 0.16858,
    "h": 283.6
  },
  "luminance": 0.02973
}

Semantic roles & 50–950 ramp

primary
#321686
secondary
#9BBA3E
accent
#EF39C1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #321686

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

Preview Lab → · Contrast checker → · Palette generator →

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