#321679#321679

#321679 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.153 H 286.7°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#321679
RGBrgb(50, 22, 121)
HSLhsl(257, 69%, 28%)
HSVhsv(257, 82%, 47%)
CMYKcmyk(58.7%, 81.8%, 0%, 52.5%)
CIE-LABlab(18.51, 39.27, -50.93)
CIE-LCHlch(18.51, 64.31, 307.63°)
OKLaboklab(31.52% 0.0441 -0.1467)
OKLCHoklch(31.52% 0.153 286.7)
XYZxyz(5.0525, 2.6321, 18.3273)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321679 #5D7916
analogous
#162B79 #321679 #631679
triadic
#321679 #793216 #167932
tetradic
#321679 #79162B #5D7916 #167963
square
#321679 #79162B #5D7916 #167963
split-complementary
#321679 #796316 #2B7916
monochromatic
#0B051A #1D0D45 #321679 #471FAD #6030D9

Accessibility & contrast

On white

13.76
#321679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321679
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321679#FFFFFF#000000##FFFFFF
##3216791.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#103347
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #321679;
/* rgb */ color: rgb(50, 22, 121);
/* oklch */ color: oklch(31.5% 0.153 286.7);
Tailwind
colors: {
  custom: {
    50: '#7357a1',
    500: '#321679',
    950: '#000000',
  },
}
SCSS
$custom: #321679;
$custom-light: #7357a1;
$custom-dark: #000000;
JSON
{
  "hex": "#321679",
  "rgb": {
    "r": 50,
    "g": 22,
    "b": 121
  },
  "hsl": {
    "h": 256.97,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31524,
    "c": 0.15314,
    "h": 286.7
  },
  "luminance": 0.02632
}

Semantic roles & 50–950 ramp

primary
#321679
secondary
#8EAE3D
accent
#EC3CBA
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #321679

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

Preview Lab → · Contrast checker → · Palette generator →

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