#321866#321866

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

Color values

HEX#321866
RGBrgb(50, 24, 102)
HSLhsl(260, 62%, 25%)
HSVhsv(260, 76%, 40%)
CMYKcmyk(51%, 76.5%, 0%, 60%)
CIE-LABlab(16.94, 32.49, -41.17)
CIE-LCHlch(16.94, 52.45, 308.28°)
OKLaboklab(29.84% 0.0479 -0.1181)
OKLCHoklch(29.84% 0.127 292.1)
XYZxyz(4.0396, 2.2905, 12.7971)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321866 #4C6618
analogous
#182566 #321866 #591866
triadic
#321866 #663218 #186632
tetradic
#321866 #661825 #4C6618 #186659
square
#321866 #661825 #4C6618 #186659
split-complementary
#321866 #665918 #256618
monochromatic
#0C0619 #1A0C34 #321866 #4A2498 #632FC9

Accessibility & contrast

On white

14.40
#321866 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#321866 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321866
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321866#FFFFFF#000000##FFFFFF
##3218661.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B68
Deuteranopia (green-blind)
#002864
Tritanopia (blue-blind)
#212C3D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321866;
/* rgb */ color: rgb(50, 24, 102);
/* oklch */ color: oklch(29.8% 0.127 292.1);
Tailwind
colors: {
  custom: {
    50: '#705792',
    500: '#321866',
    950: '#000000',
  },
}
SCSS
$custom: #321866;
$custom-light: #705792;
$custom-dark: #000000;
JSON
{
  "hex": "#321866",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 102
  },
  "hsl": {
    "h": 260,
    "s": 61.905,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29843,
    "c": 0.12743,
    "h": 292.1
  },
  "luminance": 0.02291
}

Semantic roles & 50–950 ramp

primary
#321866
secondary
#7D9C3E
accent
#E543AF
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #321866

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

Preview Lab → · Contrast checker → · Palette generator →

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