#321B76#321B76

#321B76 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.144 H 286.6°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#321B76
RGBrgb(50, 27, 118)
HSLhsl(255, 63%, 28%)
HSVhsv(255, 77%, 46%)
CMYKcmyk(57.6%, 77.1%, 0%, 53.7%)
CIE-LABlab(19.10, 35.77, -48.04)
CIE-LCHlch(19.10, 59.89, 306.67°)
OKLaboklab(31.84% 0.0411 -0.1382)
OKLCHoklch(31.84% 0.144 286.6)
XYZxyz(4.9764, 2.7697, 17.4084)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B76 #5F761B
analogous
#1B3176 #321B76 #5F1B76
triadic
#321B76 #76321B #1B7632
tetradic
#321B76 #761B31 #5F761B #1B765F
square
#321B76 #761B31 #5F761B #1B765F
split-complementary
#321B76 #765F1B #31761B
monochromatic
#0B0619 #1D1044 #321B76 #4726A8 #603AD2

Accessibility & contrast

On white

13.51
#321B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#321B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B76
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B76#FFFFFF#000000##FFFFFF
##321B761.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002C74
Tritanopia (blue-blind)
#143447
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321b76;
/* rgb */ color: rgb(50, 27, 118);
/* oklch */ color: oklch(31.8% 0.144 286.6);
Tailwind
colors: {
  custom: {
    50: '#725a9e',
    500: '#321b76',
    950: '#000000',
  },
}
SCSS
$custom: #321b76;
$custom-light: #725a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#321b76",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 255.165,
    "s": 62.759,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31844,
    "c": 0.14422,
    "h": 286.6
  },
  "luminance": 0.0277
}

Semantic roles & 50–950 ramp

primary
#321B76
secondary
#90AA42
accent
#E642BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #321B76

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

Preview Lab → · Contrast checker → · Palette generator →

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