#321356#321356

#321356 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.114 H 300.0°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#321356
RGBrgb(50, 19, 86)
HSLhsl(268, 64%, 21%)
HSVhsv(268, 78%, 34%)
CMYKcmyk(41.9%, 77.9%, 0%, 66.3%)
CIE-LABlab(14.49, 30.50, -34.50)
CIE-LCHlch(14.49, 46.05, 311.48°)
OKLaboklab(27.64% 0.057 -0.0985)
OKLCHoklch(27.64% 0.114 300)
XYZxyz(3.2276, 1.8157, 8.9827)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321356 #375613
analogous
#131556 #321356 #531356
triadic
#321356 #563213 #135632
tetradic
#321356 #561315 #375613 #135653
square
#321356 #561315 #375613 #135653
split-complementary
#321356 #565313 #155613
monochromatic
#0F0619 #150824 #321356 #4F1E88 #6C29BA

Accessibility & contrast

On white

15.40
#321356 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321356
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321356#FFFFFF#000000##FFFFFF
##3213561.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321356;
/* rgb */ color: rgb(50, 19, 86);
/* oklch */ color: oklch(27.6% 0.114 300.0);
Tailwind
colors: {
  custom: {
    50: '#6e5486',
    500: '#321356',
    950: '#000000',
  },
}
SCSS
$custom: #321356;
$custom-light: #6e5486;
$custom-dark: #000000;
JSON
{
  "hex": "#321356",
  "rgb": {
    "r": 50,
    "g": 19,
    "b": 86
  },
  "hsl": {
    "h": 267.761,
    "s": 63.81,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27643,
    "c": 0.11374,
    "h": 300
  },
  "luminance": 0.01816
}

Semantic roles & 50–950 ramp

primary
#321356
secondary
#668E36
accent
#E7419A
background
#F6F4F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321356

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

Preview Lab → · Contrast checker → · Palette generator →

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