#321D71#321D71

#321D71 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.135 H 287.4°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#321D71
RGBrgb(50, 29, 113)
HSLhsl(255, 59%, 28%)
HSVhsv(255, 74%, 44%)
CMYKcmyk(55.8%, 74.3%, 0%, 55.7%)
CIE-LABlab(19.01, 33.07, -44.96)
CIE-LCHlch(19.01, 55.81, 306.34°)
OKLaboklab(31.63% 0.0406 -0.1292)
OKLCHoklch(31.63% 0.135 287.4)
XYZxyz(4.7345, 2.7489, 15.9007)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D71 #5C711D
analogous
#1D3271 #321D71 #5C1D71
triadic
#321D71 #71321D #1D7132
tetradic
#321D71 #711D32 #5C711D #1D715C
square
#321D71 #711D32 #5C711D #1D715C
split-complementary
#321D71 #715C1D #32711D
monochromatic
#0B0618 #1C1140 #321D71 #4829A2 #603CCD

Accessibility & contrast

On white

13.55
#321D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321D71
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D71#FFFFFF#000000##FFFFFF
##321D711.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#193345
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321d71;
/* rgb */ color: rgb(50, 29, 113);
/* oklch */ color: oklch(31.6% 0.135 287.4);
Tailwind
colors: {
  custom: {
    50: '#715b9b',
    500: '#321d71',
    950: '#000000',
  },
}
SCSS
$custom: #321d71;
$custom-light: #715b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#321d71",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 113
  },
  "hsl": {
    "h": 255,
    "s": 59.155,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31632,
    "c": 0.13544,
    "h": 287.4
  },
  "luminance": 0.02749
}

Semantic roles & 50–950 ramp

primary
#321D71
secondary
#8DA544
accent
#E245BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321D71

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

Preview Lab → · Contrast checker → · Palette generator →

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