#321B71#321B71

#321B71 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.3% C 0.138 H 287.9°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#321B71
RGBrgb(50, 27, 113)
HSLhsl(256, 61%, 27%)
HSVhsv(256, 76%, 44%)
CMYKcmyk(55.8%, 76.1%, 0%, 55.7%)
CIE-LABlab(18.60, 34.21, -45.63)
CIE-LCHlch(18.60, 57.03, 306.86°)
OKLaboklab(31.34% 0.0424 -0.1312)
OKLCHoklch(31.34% 0.138 287.9)
XYZxyz(4.6871, 2.6540, 15.8849)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B71 #5A711B
analogous
#1B2F71 #321B71 #5D1B71
triadic
#321B71 #71321B #1B7132
tetradic
#321B71 #711B2F #5A711B #1B715D
square
#321B71 #711B2F #5A711B #1B715D
split-complementary
#321B71 #715D1B #2F711B
monochromatic
#0B0619 #1C0F40 #321B71 #4827A2 #6037CF

Accessibility & contrast

On white

13.72
#321B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#321B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B71
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B71#FFFFFF#000000##FFFFFF
##321B711.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002B6F
Tritanopia (blue-blind)
#193244
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #321b71;
/* rgb */ color: rgb(50, 27, 113);
/* oklch */ color: oklch(31.3% 0.138 287.9);
Tailwind
colors: {
  custom: {
    50: '#725a9b',
    500: '#321b71',
    950: '#000000',
  },
}
SCSS
$custom: #321b71;
$custom-light: #725a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#321b71",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 256.047,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31343,
    "c": 0.13786,
    "h": 287.9
  },
  "luminance": 0.02654
}

Semantic roles & 50–950 ramp

primary
#321B71
secondary
#8BA642
accent
#E543B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321B71

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

Preview Lab → · Contrast checker → · Palette generator →

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