#321A55#321A55

#321A55 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.102 H 298.4°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#321A55
RGBrgb(50, 26, 85)
HSLhsl(264, 53%, 22%)
HSVhsv(264, 69%, 33%)
CMYKcmyk(41.2%, 69.4%, 0%, 66.7%)
CIE-LABlab(15.86, 26.17, -31.59)
CIE-LCHlch(15.86, 41.02, 309.63°)
OKLaboklab(28.6% 0.0486 -0.0899)
OKLCHoklch(28.6% 0.102 298.4)
XYZxyz(3.3241, 2.0727, 8.8175)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A55 #3D551A
analogous
#1A2055 #321A55 #501A55
triadic
#321A55 #55321A #1A5532
tetradic
#321A55 #551A20 #3D551A #1A5550
square
#321A55 #551A20 #3D551A #1A5550
split-complementary
#321A55 #55501A #20551A
monochromatic
#0E0717 #160C26 #321A55 #4E2884 #6937B3

Accessibility & contrast

On white

14.85
#321A55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#321A55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A55
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A55#FFFFFF#000000##FFFFFF
##321A551.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002857
Deuteranopia (green-blind)
#002754
Tritanopia (blue-blind)
#2A2734
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #321a55;
/* rgb */ color: rgb(50, 26, 85);
/* oklch */ color: oklch(28.6% 0.102 298.4);
Tailwind
colors: {
  custom: {
    50: '#6d5885',
    500: '#321a55',
    950: '#000000',
  },
}
SCSS
$custom: #321a55;
$custom-light: #6d5885;
$custom-dark: #000000;
JSON
{
  "hex": "#321a55",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 85
  },
  "hsl": {
    "h": 264.407,
    "s": 53.153,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28601,
    "c": 0.10224,
    "h": 298.4
  },
  "luminance": 0.02073
}

Semantic roles & 50–950 ramp

primary
#321A55
secondary
#6C8B40
accent
#DD4BA1
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321A55

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

Preview Lab → · Contrast checker → · Palette generator →

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