#321E54#321E54

#321E54 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.2% C 0.094 H 297.3°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#321E54
RGBrgb(50, 30, 84)
HSLhsl(262, 47%, 22%)
HSVhsv(262, 64%, 33%)
CMYKcmyk(40.5%, 64.3%, 0%, 67.1%)
CIE-LABlab(16.73, 23.33, -29.51)
CIE-LCHlch(16.73, 37.62, 308.32°)
OKLaboklab(29.21% 0.0432 -0.0838)
OKLCHoklch(29.21% 0.094 297.3)
XYZxyz(3.3795, 2.2467, 8.6414)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E54 #40541E
analogous
#1E2554 #321E54 #4D1E54
triadic
#321E54 #54321E #1E5432
tetradic
#321E54 #541E25 #40541E #1E544D
square
#321E54 #541E25 #40541E #1E544D
split-complementary
#321E54 #544D1E #25541E
monochromatic
#0D0817 #170E27 #321E54 #4D2E81 #683EAE

Accessibility & contrast

On white

14.49
#321E54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321E54
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E54#FFFFFF#000000##FFFFFF
##321E541.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012956
Deuteranopia (green-blind)
#092953
Tritanopia (blue-blind)
#2A2A35
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321e54;
/* rgb */ color: rgb(50, 30, 84);
/* oklch */ color: oklch(29.2% 0.094 297.3);
Tailwind
colors: {
  custom: {
    50: '#6d5b84',
    500: '#321e54',
    950: '#000000',
  },
}
SCSS
$custom: #321e54;
$custom-light: #6d5b84;
$custom-dark: #000000;
JSON
{
  "hex": "#321e54",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 84
  },
  "hsl": {
    "h": 262.222,
    "s": 47.368,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29207,
    "c": 0.09434,
    "h": 297.3
  },
  "luminance": 0.02247
}

Semantic roles & 50–950 ramp

primary
#321E54
secondary
#708945
accent
#D751A5
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #321E54

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

Preview Lab → · Contrast checker → · Palette generator →

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