#321A54#321A54

#321A54 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.5% C 0.101 H 298.9°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#321A54
RGBrgb(50, 26, 84)
HSLhsl(265, 53%, 22%)
HSVhsv(265, 69%, 33%)
CMYKcmyk(40.5%, 69%, 0%, 67.1%)
CIE-LABlab(15.78, 25.86, -31.04)
CIE-LCHlch(15.78, 40.41, 309.80°)
OKLaboklab(28.52% 0.0487 -0.0883)
OKLCHoklch(28.52% 0.101 298.9)
XYZxyz(3.2846, 2.0570, 8.6098)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A54 #3C541A
analogous
#1A1F54 #321A54 #4F1A54
triadic
#321A54 #54321A #1A5432
tetradic
#321A54 #541A1F #3C541A #1A544F
square
#321A54 #541A1F #3C541A #1A544F
split-complementary
#321A54 #544F1A #1F541A
monochromatic
#0E0717 #160C25 #321A54 #4E2883 #6A37B1

Accessibility & contrast

On white

14.88
#321A54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321A54
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A54#FFFFFF#000000##FFFFFF
##321A541.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321a54;
/* rgb */ color: rgb(50, 26, 84);
/* oklch */ color: oklch(28.5% 0.101 298.9);
Tailwind
colors: {
  custom: {
    50: '#6d5885',
    500: '#321a54',
    950: '#000000',
  },
}
SCSS
$custom: #321a54;
$custom-light: #6d5885;
$custom-dark: #000000;
JSON
{
  "hex": "#321a54",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 84
  },
  "hsl": {
    "h": 264.828,
    "s": 52.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28517,
    "c": 0.10087,
    "h": 298.9
  },
  "luminance": 0.02057
}

Semantic roles & 50–950 ramp

primary
#321A54
secondary
#6B8A40
accent
#DC4CA0
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321A54

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

Preview Lab → · Contrast checker → · Palette generator →

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