#321551#321551

#321551 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.105 H 302.1°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#321551
RGBrgb(50, 21, 81)
HSLhsl(269, 59%, 20%)
HSVhsv(269, 74%, 32%)
CMYKcmyk(38.3%, 74.1%, 0%, 68.2%)
CIE-LABlab(14.45, 27.96, -31.17)
CIE-LCHlch(14.45, 41.87, 311.90°)
OKLaboklab(27.48% 0.0555 -0.0887)
OKLCHoklch(27.48% 0.105 302.1)
XYZxyz(3.0684, 1.8085, 7.9704)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321551 #345115
analogous
#151651 #321551 #501551
triadic
#321551 #513215 #155132
tetradic
#321551 #511516 #345115 #155150
square
#321551 #511516 #345115 #155150
split-complementary
#321551 #515015 #165115
monochromatic
#0F0618 #140820 #321551 #502282 #6E2EB2

Accessibility & contrast

On white

15.42
#321551 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#321551 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321551
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321551#FFFFFF#000000##FFFFFF
##3215511.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002453
Deuteranopia (green-blind)
#002450
Tritanopia (blue-blind)
#2C2331
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #321551;
/* rgb */ color: rgb(50, 21, 81);
/* oklch */ color: oklch(27.5% 0.105 302.1);
Tailwind
colors: {
  custom: {
    50: '#6d5582',
    500: '#321551',
    950: '#000000',
  },
}
SCSS
$custom: #321551;
$custom-light: #6d5582;
$custom-dark: #000000;
JSON
{
  "hex": "#321551",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 81
  },
  "hsl": {
    "h": 269,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.27477,
    "c": 0.10462,
    "h": 302.1
  },
  "luminance": 0.01809
}

Semantic roles & 50–950 ramp

primary
#321551
secondary
#628939
accent
#E24697
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #321551

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

Preview Lab → · Contrast checker → · Palette generator →

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