#321E53#321E53

#321E53 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.1% C 0.093 H 297.8°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#321E53
RGBrgb(50, 30, 83)
HSLhsl(263, 47%, 22%)
HSVhsv(263, 64%, 33%)
CMYKcmyk(39.8%, 63.9%, 0%, 67.5%)
CIE-LABlab(16.66, 23.02, -28.96)
CIE-LCHlch(16.66, 37.00, 308.48°)
OKLaboklab(29.13% 0.0433 -0.0822)
OKLCHoklch(29.13% 0.093 297.8)
XYZxyz(3.3406, 2.2311, 8.4366)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E53 #3F531E
analogous
#1E2453 #321E53 #4D1E53
triadic
#321E53 #53321E #1E5332
tetradic
#321E53 #531E24 #3F531E #1E534D
square
#321E53 #531E24 #3F531E #1E534D
split-complementary
#321E53 #534D1E #24531E
monochromatic
#0E0816 #170E26 #321E53 #4D2E80 #683EAD

Accessibility & contrast

On white

14.52
#321E53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321E53
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E53#FFFFFF#000000##FFFFFF
##321E531.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032955
Deuteranopia (green-blind)
#0A2952
Tritanopia (blue-blind)
#2A2935
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321e53;
/* rgb */ color: rgb(50, 30, 83);
/* oklch */ color: oklch(29.1% 0.093 297.8);
Tailwind
colors: {
  custom: {
    50: '#6d5b84',
    500: '#321e53',
    950: '#000000',
  },
}
SCSS
$custom: #321e53;
$custom-light: #6d5b84;
$custom-dark: #000000;
JSON
{
  "hex": "#321e53",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 83
  },
  "hsl": {
    "h": 262.642,
    "s": 46.903,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29128,
    "c": 0.0929,
    "h": 297.8
  },
  "luminance": 0.02231
}

Semantic roles & 50–950 ramp

primary
#321E53
secondary
#6F8845
accent
#D751A4
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #321E53

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

Preview Lab → · Contrast checker → · Palette generator →

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