#321A48#321A48

#321A48 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.6% C 0.084 H 305.6°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#321A48
RGBrgb(50, 26, 72)
HSLhsl(271, 47%, 19%)
HSVhsv(271, 64%, 28%)
CMYKcmyk(30.6%, 63.9%, 0%, 71.8%)
CIE-LABlab(14.87, 22.35, -24.31)
CIE-LCHlch(14.87, 33.02, 312.60°)
OKLaboklab(27.56% 0.0492 -0.0685)
OKLCHoklch(27.56% 0.084 305.6)
XYZxyz(2.8542, 1.8848, 6.3431)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A48 #30481A
analogous
#1B1A48 #321A48 #481A47
triadic
#321A48 #48321A #1A4832
tetradic
#321A48 #481B1A #30481A #1A4748
square
#321A48 #481B1A #30481A #1A4748
split-complementary
#321A48 #47481A #1A481B
monochromatic
#100816 #130A1B #321A48 #512A75 #703AA2

Accessibility & contrast

On white

15.25
#321A48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#321A48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A48
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A48#FFFFFF#000000##FFFFFF
##321A481.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08254A
Deuteranopia (green-blind)
#122647
Tritanopia (blue-blind)
#2E232E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #321a48;
/* rgb */ color: rgb(50, 26, 72);
/* oklch */ color: oklch(27.6% 0.084 305.6);
Tailwind
colors: {
  custom: {
    50: '#6c577b',
    500: '#321a48',
    950: '#000000',
  },
}
SCSS
$custom: #321a48;
$custom-light: #6c577b;
$custom-dark: #000000;
JSON
{
  "hex": "#321a48",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 72
  },
  "hsl": {
    "h": 271.304,
    "s": 46.939,
    "l": 19.216
  },
  "oklch": {
    "l": 0.27561,
    "c": 0.08435,
    "h": 305.6
  },
  "luminance": 0.01885
}

Semantic roles & 50–950 ramp

primary
#321A48
secondary
#5E7E40
accent
#D75191
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #321A48

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

Preview Lab → · Contrast checker → · Palette generator →

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