#321E76#321E76

#321E76 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.141 H 285.9°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#321E76
RGBrgb(50, 30, 118)
HSLhsl(254, 59%, 29%)
HSVhsv(254, 75%, 46%)
CMYKcmyk(57.6%, 74.6%, 0%, 53.7%)
CIE-LABlab(19.70, 34.08, -47.05)
CIE-LCHlch(19.70, 58.10, 305.92°)
OKLaboklab(32.27% 0.0385 -0.1354)
OKLCHoklch(32.27% 0.141 285.9)
XYZxyz(5.0487, 2.9144, 17.4325)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E76 #62761E
analogous
#1E3676 #321E76 #5E1E76
triadic
#321E76 #76321E #1E7632
tetradic
#321E76 #761E36 #62761E #1E765E
square
#321E76 #761E36 #62761E #1E765E
split-complementary
#321E76 #765E1E #36761E
monochromatic
#0A0618 #1D1245 #321E76 #472AA7 #6040CE

Accessibility & contrast

On white

13.27
#321E76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#321E76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E76
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E76#FFFFFF#000000##FFFFFF
##321E761.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#133648
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321e76;
/* rgb */ color: rgb(50, 30, 118);
/* oklch */ color: oklch(32.3% 0.141 285.9);
Tailwind
colors: {
  custom: {
    50: '#725c9e',
    500: '#321e76',
    950: '#000000',
  },
}
SCSS
$custom: #321e76;
$custom-light: #725c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#321e76",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 118
  },
  "hsl": {
    "h": 253.636,
    "s": 59.459,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32269,
    "c": 0.14073,
    "h": 285.9
  },
  "luminance": 0.02915
}

Semantic roles & 50–950 ramp

primary
#321E76
secondary
#93AA46
accent
#E345BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #321E76

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

Preview Lab → · Contrast checker → · Palette generator →

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