#321F79#321F79

#321F79 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.143 H 284.9°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#321F79
RGBrgb(50, 31, 121)
HSLhsl(253, 59%, 30%)
HSVhsv(253, 74%, 47%)
CMYKcmyk(58.7%, 74.4%, 0%, 52.5%)
CIE-LABlab(20.20, 34.47, -48.16)
CIE-LCHlch(20.20, 59.22, 305.59°)
OKLaboklab(32.71% 0.037 -0.1386)
OKLCHoklch(32.71% 0.143 284.9)
XYZxyz(5.2555, 3.0382, 18.3950)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F79 #66791F
analogous
#1F3979 #321F79 #5F1F79
triadic
#321F79 #79321F #1F7932
tetradic
#321F79 #791F39 #66791F #1F795F
square
#321F79 #791F39 #66791F #1F795F
split-complementary
#321F79 #795F1F #39791F
monochromatic
#0A0618 #1E1348 #321F79 #462BAA #6143CF

Accessibility & contrast

On white

13.06
#321F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#321F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F79
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F79#FFFFFF#000000##FFFFFF
##321F791.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#002E77
Tritanopia (blue-blind)
#0F374A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #321f79;
/* rgb */ color: rgb(50, 31, 121);
/* oklch */ color: oklch(32.7% 0.143 284.9);
Tailwind
colors: {
  custom: {
    50: '#735da1',
    500: '#321f79',
    950: '#000000',
  },
}
SCSS
$custom: #321f79;
$custom-light: #735da1;
$custom-dark: #000000;
JSON
{
  "hex": "#321f79",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 252.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32713,
    "c": 0.14345,
    "h": 284.9
  },
  "luminance": 0.03039
}

Semantic roles & 50–950 ramp

primary
#321F79
secondary
#97AC47
accent
#E245C1
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321F79

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

Preview Lab → · Contrast checker → · Palette generator →

#321F79 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva