#321864#321864

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

Color values

HEX#321864
RGBrgb(50, 24, 100)
HSLhsl(261, 61%, 24%)
HSVhsv(261, 76%, 39%)
CMYKcmyk(50%, 76%, 0%, 60.8%)
CIE-LABlab(16.75, 31.88, -40.16)
CIE-LCHlch(16.75, 51.28, 308.45°)
OKLaboklab(29.65% 0.0484 -0.1151)
OKLCHoklch(29.65% 0.125 292.8)
XYZxyz(3.9416, 2.2513, 12.2810)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321864 #4A6418
analogous
#182464 #321864 #581864
triadic
#321864 #643218 #186432
tetradic
#321864 #641824 #4A6418 #186458
square
#321864 #641824 #4A6418 #186458
split-complementary
#321864 #645818 #246418
monochromatic
#0C0619 #190C33 #321864 #4B2495 #6330C7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##321864#FFFFFF#000000##FFFFFF
##3218641.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)
#002A66
Deuteranopia (green-blind)
#002863
Tritanopia (blue-blind)
#232C3C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321864;
/* rgb */ color: rgb(50, 24, 100);
/* oklch */ color: oklch(29.7% 0.125 292.8);
Tailwind
colors: {
  custom: {
    50: '#705791',
    500: '#321864',
    950: '#000000',
  },
}
SCSS
$custom: #321864;
$custom-light: #705791;
$custom-dark: #000000;
JSON
{
  "hex": "#321864",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 100
  },
  "hsl": {
    "h": 260.526,
    "s": 61.29,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29651,
    "c": 0.12487,
    "h": 292.8
  },
  "luminance": 0.02251
}

Semantic roles & 50–950 ramp

primary
#321864
secondary
#7B9A3E
accent
#E443AD
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #321864

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

Preview Lab → · Contrast checker → · Palette generator →

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