#321558#321558

#321558 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.114 H 298.6°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#321558
RGBrgb(50, 21, 88)
HSLhsl(266, 61%, 21%)
HSVhsv(266, 76%, 35%)
CMYKcmyk(43.2%, 76.1%, 0%, 65.5%)
CIE-LABlab(15.06, 29.98, -34.93)
CIE-LCHlch(15.06, 46.03, 310.65°)
OKLaboklab(28.1% 0.0543 -0.0997)
OKLCHoklch(28.1% 0.114 298.6)
XYZxyz(3.3446, 1.9190, 9.4248)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321558 #3B5815
analogous
#151A58 #321558 #541558
triadic
#321558 #583215 #155832
tetradic
#321558 #58151A #3B5815 #155854
square
#321558 #58151A #3B5815 #155854
split-complementary
#321558 #585415 #1A5815
monochromatic
#0E0619 #160927 #321558 #4E2189 #6A2DBB

Accessibility & contrast

On white

15.18
#321558 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321558
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321558#FFFFFF#000000##FFFFFF
##3215581.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002557
Tritanopia (blue-blind)
#292535
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #321558;
/* rgb */ color: rgb(50, 21, 88);
/* oklch */ color: oklch(28.1% 0.114 298.6);
Tailwind
colors: {
  custom: {
    50: '#6e5588',
    500: '#321558',
    950: '#000000',
  },
}
SCSS
$custom: #321558;
$custom-light: #6e5588;
$custom-dark: #000000;
JSON
{
  "hex": "#321558",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 88
  },
  "hsl": {
    "h": 265.97,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28102,
    "c": 0.11354,
    "h": 298.6
  },
  "luminance": 0.01919
}

Semantic roles & 50–950 ramp

primary
#321558
secondary
#6A9039
accent
#E5439F
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321558

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

Preview Lab → · Contrast checker → · Palette generator →

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