#321777#321777

#321777 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.150 H 287.1°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#321777
RGBrgb(50, 23, 119)
HSLhsl(257, 68%, 28%)
HSVhsv(257, 81%, 47%)
CMYKcmyk(58%, 80.7%, 0%, 53.3%)
CIE-LABlab(18.46, 38.18, -49.72)
CIE-LCHlch(18.46, 62.69, 307.52°)
OKLaboklab(31.43% 0.044 -0.1431)
OKLCHoklch(31.43% 0.15 287.1)
XYZxyz(4.9506, 2.6225, 17.6945)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321777 #5C7717
analogous
#172C77 #321777 #621777
triadic
#321777 #773217 #177732
tetradic
#321777 #77172C #5C7717 #177762
square
#321777 #77172C #5C7717 #177762
split-complementary
#321777 #776217 #2C7717
monochromatic
#0B051A #1C0D44 #321777 #4821AA #6031D7

Accessibility & contrast

On white

13.77
#321777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#321777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321777
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321777#FFFFFF#000000##FFFFFF
##3217771.0013.771.5213.77
#FFFFFF13.771.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7A
Deuteranopia (green-blind)
#002A75
Tritanopia (blue-blind)
#133347
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #321777;
/* rgb */ color: rgb(50, 23, 119);
/* oklch */ color: oklch(31.4% 0.150 287.1);
Tailwind
colors: {
  custom: {
    50: '#73589f',
    500: '#321777',
    950: '#000000',
  },
}
SCSS
$custom: #321777;
$custom-light: #73589f;
$custom-dark: #000000;
JSON
{
  "hex": "#321777",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 256.875,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31431,
    "c": 0.14973,
    "h": 287.1
  },
  "luminance": 0.02623
}

Semantic roles & 50–950 ramp

primary
#321777
secondary
#8DAC3E
accent
#EA3DBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #321777

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

Preview Lab → · Contrast checker → · Palette generator →

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