#321E56#321E56

#321E56 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.4% C 0.097 H 296.4°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#321E56
RGBrgb(50, 30, 86)
HSLhsl(261, 48%, 23%)
HSVhsv(261, 65%, 34%)
CMYKcmyk(41.9%, 65.1%, 0%, 66.3%)
CIE-LABlab(16.89, 23.94, -30.61)
CIE-LCHlch(16.89, 38.87, 308.03°)
OKLaboklab(29.37% 0.0432 -0.0871)
OKLCHoklch(29.37% 0.097 296.4)
XYZxyz(3.4589, 2.2785, 9.0598)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E56 #42561E
analogous
#1E2656 #321E56 #4E1E56
triadic
#321E56 #56321E #1E5632
tetradic
#321E56 #561E26 #42561E #1E564E
square
#321E56 #561E26 #42561E #1E564E
split-complementary
#321E56 #564E1E #26561E
monochromatic
#0D0817 #180E29 #321E56 #4C2E83 #673EB1

Accessibility & contrast

On white

14.43
#321E56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#321E56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E56
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E56#FFFFFF#000000##FFFFFF
##321E561.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A58
Deuteranopia (green-blind)
#062955
Tritanopia (blue-blind)
#292A36
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321e56;
/* rgb */ color: rgb(50, 30, 86);
/* oklch */ color: oklch(29.4% 0.097 296.4);
Tailwind
colors: {
  custom: {
    50: '#6d5b86',
    500: '#321e56',
    950: '#000000',
  },
}
SCSS
$custom: #321e56;
$custom-light: #6d5b86;
$custom-dark: #000000;
JSON
{
  "hex": "#321e56",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 86
  },
  "hsl": {
    "h": 261.429,
    "s": 48.276,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29368,
    "c": 0.0972,
    "h": 296.4
  },
  "luminance": 0.02279
}

Semantic roles & 50–950 ramp

primary
#321E56
secondary
#728B45
accent
#D850A7
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #321E56

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

Preview Lab → · Contrast checker → · Palette generator →

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