#321654#321654

#321654 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.107 H 300.2°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#321654
RGBrgb(50, 22, 84)
HSLhsl(267, 58%, 21%)
HSVhsv(267, 74%, 33%)
CMYKcmyk(40.5%, 73.8%, 0%, 67.1%)
CIE-LABlab(14.91, 28.25, -32.46)
CIE-LCHlch(14.91, 43.03, 311.04°)
OKLaboklab(27.89% 0.0538 -0.0925)
OKLCHoklch(27.89% 0.107 300.2)
XYZxyz(3.2021, 1.8920, 8.5823)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321654 #385416
analogous
#161954 #321654 #511654
triadic
#321654 #543216 #165432
tetradic
#321654 #541619 #385416 #165451
square
#321654 #541619 #385416 #165451
split-complementary
#321654 #545116 #195416
monochromatic
#0E0618 #150924 #321654 #4F2384 #6C2FB5

Accessibility & contrast

On white

15.24
#321654 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#321654 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321654
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321654#FFFFFF#000000##FFFFFF
##3216541.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#002553
Tritanopia (blue-blind)
#2A2433
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #321654;
/* rgb */ color: rgb(50, 22, 84);
/* oklch */ color: oklch(27.9% 0.107 300.2);
Tailwind
colors: {
  custom: {
    50: '#6d5585',
    500: '#321654',
    950: '#000000',
  },
}
SCSS
$custom: #321654;
$custom-light: #6d5585;
$custom-dark: #000000;
JSON
{
  "hex": "#321654",
  "rgb": {
    "r": 50,
    "g": 22,
    "b": 84
  },
  "hsl": {
    "h": 267.097,
    "s": 58.491,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27888,
    "c": 0.10701,
    "h": 300.2
  },
  "luminance": 0.01892
}

Semantic roles & 50–950 ramp

primary
#321654
secondary
#678B3A
accent
#E2469B
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321654

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

Preview Lab → · Contrast checker → · Palette generator →

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