#321A56#321A56

#321A56 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.104 H 297.9°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#321A56
RGBrgb(50, 26, 86)
HSLhsl(264, 54%, 22%)
HSVhsv(264, 70%, 34%)
CMYKcmyk(41.9%, 69.8%, 0%, 66.3%)
CIE-LABlab(15.95, 26.47, -32.13)
CIE-LCHlch(15.95, 41.63, 309.48°)
OKLaboklab(28.69% 0.0485 -0.0915)
OKLCHoklch(28.69% 0.104 297.9)
XYZxyz(3.3641, 2.0887, 9.0282)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A56 #3E561A
analogous
#1A2056 #321A56 #501A56
triadic
#321A56 #56321A #1A5632
tetradic
#321A56 #561A20 #3E561A #1A5650
square
#321A56 #561A20 #3E561A #1A5650
split-complementary
#321A56 #56501A #20561A
monochromatic
#0E0717 #170C27 #321A56 #4D2885 #6936B4

Accessibility & contrast

On white

14.81
#321A56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#321A56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A56
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A56#FFFFFF#000000##FFFFFF
##321A561.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002858
Deuteranopia (green-blind)
#002755
Tritanopia (blue-blind)
#292835
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #321a56;
/* rgb */ color: rgb(50, 26, 86);
/* oklch */ color: oklch(28.7% 0.104 297.9);
Tailwind
colors: {
  custom: {
    50: '#6d5886',
    500: '#321a56',
    950: '#000000',
  },
}
SCSS
$custom: #321a56;
$custom-light: #6d5886;
$custom-dark: #000000;
JSON
{
  "hex": "#321a56",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 86
  },
  "hsl": {
    "h": 264,
    "s": 53.571,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28686,
    "c": 0.10359,
    "h": 297.9
  },
  "luminance": 0.02089
}

Semantic roles & 50–950 ramp

primary
#321A56
secondary
#6E8C40
accent
#DD4BA3
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321A56

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

Preview Lab → · Contrast checker → · Palette generator →

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