#321E55#321E55

#321E55 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.3% C 0.096 H 296.8°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#321E55
RGBrgb(50, 30, 85)
HSLhsl(262, 48%, 23%)
HSVhsv(262, 65%, 33%)
CMYKcmyk(41.2%, 64.7%, 0%, 66.7%)
CIE-LABlab(16.81, 23.64, -30.07)
CIE-LCHlch(16.81, 38.24, 308.17°)
OKLaboklab(29.29% 0.0432 -0.0855)
OKLCHoklch(29.29% 0.096 296.8)
XYZxyz(3.4189, 2.2625, 8.8491)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E55 #41551E
analogous
#1E2655 #321E55 #4D1E55
triadic
#321E55 #55321E #1E5532
tetradic
#321E55 #551E26 #41551E #1E554D
square
#321E55 #551E26 #41551E #1E554D
split-complementary
#321E55 #554D1E #26551E
monochromatic
#0D0817 #170E28 #321E55 #4D2E82 #673EAF

Accessibility & contrast

On white

14.46
#321E55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#321E55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E55
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E55#FFFFFF#000000##FFFFFF
##321E551.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A57
Deuteranopia (green-blind)
#072954
Tritanopia (blue-blind)
#2A2A36
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321e55;
/* rgb */ color: rgb(50, 30, 85);
/* oklch */ color: oklch(29.3% 0.096 296.8);
Tailwind
colors: {
  custom: {
    50: '#6d5b85',
    500: '#321e55',
    950: '#000000',
  },
}
SCSS
$custom: #321e55;
$custom-light: #6d5b85;
$custom-dark: #000000;
JSON
{
  "hex": "#321e55",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 85
  },
  "hsl": {
    "h": 261.818,
    "s": 47.826,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29287,
    "c": 0.09577,
    "h": 296.8
  },
  "luminance": 0.02263
}

Semantic roles & 50–950 ramp

primary
#321E55
secondary
#718A45
accent
#D750A6
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #321E55

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

Preview Lab → · Contrast checker → · Palette generator →

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