#321779#321779

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

Color values

HEX#321779
RGBrgb(50, 23, 121)
HSLhsl(257, 68%, 28%)
HSVhsv(257, 81%, 47%)
CMYKcmyk(58.7%, 81%, 0%, 52.5%)
CIE-LABlab(18.68, 38.78, -50.66)
CIE-LCHlch(18.68, 63.79, 307.44°)
OKLaboklab(31.64% 0.0434 -0.1458)
OKLCHoklch(31.64% 0.152 286.6)
XYZxyz(5.0719, 2.6711, 18.3338)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321779 #5E7917
analogous
#172D79 #321779 #631779
triadic
#321779 #793217 #177932
tetradic
#321779 #79172D #5E7917 #177963
square
#321779 #79172D #5E7917 #177963
split-complementary
#321779 #796317 #2D7917
monochromatic
#0B051A #1D0D46 #321779 #4721AC #6032D8

Accessibility & contrast

On white

13.69
#321779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321779
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321779#FFFFFF#000000##FFFFFF
##3217791.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#103348
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #321779;
/* rgb */ color: rgb(50, 23, 121);
/* oklch */ color: oklch(31.6% 0.152 286.6);
Tailwind
colors: {
  custom: {
    50: '#7358a1',
    500: '#321779',
    950: '#000000',
  },
}
SCSS
$custom: #321779;
$custom-light: #7358a1;
$custom-dark: #000000;
JSON
{
  "hex": "#321779",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 256.531,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31642,
    "c": 0.15216,
    "h": 286.6
  },
  "luminance": 0.02671
}

Semantic roles & 50–950 ramp

primary
#321779
secondary
#8FAE3E
accent
#EB3DBB
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #321779

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

Preview Lab → · Contrast checker → · Palette generator →

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