#321666#321666

#321666 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.130 H 292.6°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#321666
RGBrgb(50, 22, 102)
HSLhsl(261, 65%, 24%)
HSVhsv(261, 78%, 40%)
CMYKcmyk(51%, 78.4%, 0%, 60%)
CIE-LABlab(16.56, 33.58, -41.80)
CIE-LCHlch(16.56, 53.62, 308.78°)
OKLaboklab(29.57% 0.0499 -0.1199)
OKLCHoklch(29.57% 0.13 292.6)
XYZxyz(3.9999, 2.2111, 12.7838)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321666 #4A6616
analogous
#162266 #321666 #5A1666
triadic
#321666 #663216 #166632
tetradic
#321666 #661622 #4A6616 #16665A
square
#321666 #661622 #4A6616 #16665A
split-complementary
#321666 #665A16 #226616
monochromatic
#0C0519 #190B34 #321666 #4B2198 #632CCB

Accessibility & contrast

On white

14.56
#321666 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#321666 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321666
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321666#FFFFFF#000000##FFFFFF
##3216661.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002764
Tritanopia (blue-blind)
#222B3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321666;
/* rgb */ color: rgb(50, 22, 102);
/* oklch */ color: oklch(29.6% 0.130 292.6);
Tailwind
colors: {
  custom: {
    50: '#705692',
    500: '#321666',
    950: '#000000',
  },
}
SCSS
$custom: #321666;
$custom-light: #705692;
$custom-dark: #000000;
JSON
{
  "hex": "#321666",
  "rgb": {
    "r": 50,
    "g": 22,
    "b": 102
  },
  "hsl": {
    "h": 261,
    "s": 64.516,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29571,
    "c": 0.12987,
    "h": 292.6
  },
  "luminance": 0.02211
}

Semantic roles & 50–950 ramp

primary
#321666
secondary
#7B9D3B
accent
#E840AD
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #321666

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

Preview Lab → · Contrast checker → · Palette generator →

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