#321668#321668

#321668 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.132 H 291.9°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#321668
RGBrgb(50, 22, 104)
HSLhsl(260, 65%, 25%)
HSVhsv(260, 79%, 41%)
CMYKcmyk(51.9%, 78.8%, 0%, 59.2%)
CIE-LABlab(16.75, 34.18, -42.79)
CIE-LCHlch(16.75, 54.77, 308.61°)
OKLaboklab(29.77% 0.0493 -0.1228)
OKLCHoklch(29.77% 0.132 291.9)
XYZxyz(4.1003, 2.2513, 13.3125)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321668 #4C6816
analogous
#162368 #321668 #5B1668
triadic
#321668 #683216 #166832
tetradic
#321668 #681623 #4C6816 #16685B
square
#321668 #681623 #4C6816 #16685B
split-complementary
#321668 #685B16 #236816
monochromatic
#0C0519 #1A0B35 #321668 #4A219B #632BCD

Accessibility & contrast

On white

14.48
#321668 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#321668 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321668
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321668#FFFFFF#000000##FFFFFF
##3216681.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002866
Tritanopia (blue-blind)
#202C3E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321668;
/* rgb */ color: rgb(50, 22, 104);
/* oklch */ color: oklch(29.8% 0.132 291.9);
Tailwind
colors: {
  custom: {
    50: '#705694',
    500: '#321668',
    950: '#000000',
  },
}
SCSS
$custom: #321668;
$custom-light: #705694;
$custom-dark: #000000;
JSON
{
  "hex": "#321668",
  "rgb": {
    "r": 50,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 260.488,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29769,
    "c": 0.13236,
    "h": 291.9
  },
  "luminance": 0.02251
}

Semantic roles & 50–950 ramp

primary
#321668
secondary
#7D9F3B
accent
#E840AF
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #321668

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

Preview Lab → · Contrast checker → · Palette generator →

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