#321E77#321E77

#321E77 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.142 H 285.6°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#321E77
RGBrgb(50, 30, 119)
HSLhsl(253, 60%, 29%)
HSVhsv(253, 75%, 47%)
CMYKcmyk(58%, 74.8%, 0%, 53.3%)
CIE-LABlab(19.80, 34.40, -47.53)
CIE-LCHlch(19.80, 58.68, 305.89°)
OKLaboklab(32.37% 0.0383 -0.1368)
OKLCHoklch(32.37% 0.142 285.6)
XYZxyz(5.1084, 2.9383, 17.7471)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E77 #63771E
analogous
#1E3777 #321E77 #5F1E77
triadic
#321E77 #77321E #1E7732
tetradic
#321E77 #771E37 #63771E #1E775F
square
#321E77 #771E37 #63771E #1E775F
split-complementary
#321E77 #775F1E #37771E
monochromatic
#0A0618 #1D1246 #321E77 #472AA8 #6040CF

Accessibility & contrast

On white

13.23
#321E77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#321E77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E77
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E77#FFFFFF#000000##FFFFFF
##321E771.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#002D75
Tritanopia (blue-blind)
#123648
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321e77;
/* rgb */ color: rgb(50, 30, 119);
/* oklch */ color: oklch(32.4% 0.142 285.6);
Tailwind
colors: {
  custom: {
    50: '#725c9f',
    500: '#321e77',
    950: '#000000',
  },
}
SCSS
$custom: #321e77;
$custom-light: #725c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#321e77",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 119
  },
  "hsl": {
    "h": 253.483,
    "s": 59.732,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32368,
    "c": 0.14204,
    "h": 285.6
  },
  "luminance": 0.02939
}

Semantic roles & 50–950 ramp

primary
#321E77
secondary
#94AB46
accent
#E345BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #321E77

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

Preview Lab → · Contrast checker → · Palette generator →

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