#321354#321354

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

Color values

HEX#321354
RGBrgb(50, 19, 84)
HSLhsl(269, 63%, 20%)
HSVhsv(269, 77%, 33%)
CMYKcmyk(40.5%, 77.4%, 0%, 67.1%)
CIE-LABlab(14.31, 29.93, -33.43)
CIE-LCHlch(14.31, 44.87, 311.83°)
OKLaboklab(27.46% 0.0574 -0.0953)
OKLCHoklch(27.46% 0.111 301.1)
XYZxyz(3.1481, 1.7839, 8.5643)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321354 #355413
analogous
#131554 #321354 #521354
triadic
#321354 #543213 #135432
tetradic
#321354 #541315 #355413 #135452
square
#321354 #541315 #355413 #135452
split-complementary
#321354 #545213 #155413
monochromatic
#0F0619 #140822 #321354 #501E86 #6D2AB8

Accessibility & contrast

On white

15.48
#321354 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321354
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321354#FFFFFF#000000##FFFFFF
##3213541.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002456
Deuteranopia (green-blind)
#002453
Tritanopia (blue-blind)
#2B2332
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #321354;
/* rgb */ color: rgb(50, 19, 84);
/* oklch */ color: oklch(27.5% 0.111 301.1);
Tailwind
colors: {
  custom: {
    50: '#6e5485',
    500: '#321354',
    950: '#000000',
  },
}
SCSS
$custom: #321354;
$custom-light: #6e5485;
$custom-dark: #000000;
JSON
{
  "hex": "#321354",
  "rgb": {
    "r": 50,
    "g": 19,
    "b": 84
  },
  "hsl": {
    "h": 268.615,
    "s": 63.107,
    "l": 20.196
  },
  "oklch": {
    "l": 0.2746,
    "c": 0.11126,
    "h": 301.1
  },
  "luminance": 0.01784
}

Semantic roles & 50–950 ramp

primary
#321354
secondary
#638C36
accent
#E64298
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321354

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

Preview Lab → · Contrast checker → · Palette generator →

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