#321877#321877

#321877 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.149 H 286.9°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#321877
RGBrgb(50, 24, 119)
HSLhsl(256, 66%, 28%)
HSVhsv(256, 80%, 47%)
CMYKcmyk(58%, 79.8%, 0%, 53.3%)
CIE-LABlab(18.64, 37.67, -49.43)
CIE-LCHlch(18.64, 62.15, 307.31°)
OKLaboklab(31.56% 0.0432 -0.1423)
OKLCHoklch(31.56% 0.149 286.9)
XYZxyz(4.9708, 2.6630, 17.7013)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321877 #5D7718
analogous
#182D77 #321877 #611877
triadic
#321877 #773218 #187732
tetradic
#321877 #77182D #5D7718 #187761
square
#321877 #77182D #5D7718 #187761
split-complementary
#321877 #776118 #2D7718
monochromatic
#0B0519 #1D0E44 #321877 #4722AA #6033D6

Accessibility & contrast

On white

13.70
#321877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#321877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321877
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321877#FFFFFF#000000##FFFFFF
##3218771.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002B75
Tritanopia (blue-blind)
#133347
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #321877;
/* rgb */ color: rgb(50, 24, 119);
/* oklch */ color: oklch(31.6% 0.149 286.9);
Tailwind
colors: {
  custom: {
    50: '#73589f',
    500: '#321877',
    950: '#000000',
  },
}
SCSS
$custom: #321877;
$custom-light: #73589f;
$custom-dark: #000000;
JSON
{
  "hex": "#321877",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 256.421,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31555,
    "c": 0.14871,
    "h": 286.9
  },
  "luminance": 0.02663
}

Semantic roles & 50–950 ramp

primary
#321877
secondary
#8EAC3F
accent
#E93EBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #321877

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

Preview Lab → · Contrast checker → · Palette generator →

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