#321A47#321A47

#321A47 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.5% C 0.083 H 306.3°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#321A47
RGBrgb(50, 26, 71)
HSLhsl(272, 46%, 19%)
HSVhsv(272, 63%, 28%)
CMYKcmyk(29.6%, 63.4%, 0%, 72.2%)
CIE-LABlab(14.80, 22.06, -23.73)
CIE-LCHlch(14.80, 32.40, 312.92°)
OKLaboklab(27.49% 0.0491 -0.0669)
OKLCHoklch(27.49% 0.083 306.3)
XYZxyz(2.8219, 1.8719, 6.1727)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A47 #2F471A
analogous
#1C1A47 #321A47 #471A46
triadic
#321A47 #47321A #1A4732
tetradic
#321A47 #471C1A #2F471A #1A4647
square
#321A47 #471C1A #2F471A #1A4647
split-complementary
#321A47 #46471A #1A471C
monochromatic
#100816 #120A1A #321A47 #522A74 #713BA1

Accessibility & contrast

On white

15.28
#321A47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#321A47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A47
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A47#FFFFFF#000000##FFFFFF
##321A471.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092448
Deuteranopia (green-blind)
#122546
Tritanopia (blue-blind)
#2F232D
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #321a47;
/* rgb */ color: rgb(50, 26, 71);
/* oklch */ color: oklch(27.5% 0.083 306.3);
Tailwind
colors: {
  custom: {
    50: '#6c577a',
    500: '#321a47',
    950: '#000000',
  },
}
SCSS
$custom: #321a47;
$custom-light: #6c577a;
$custom-dark: #000000;
JSON
{
  "hex": "#321a47",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 71
  },
  "hsl": {
    "h": 272,
    "s": 46.392,
    "l": 19.02
  },
  "oklch": {
    "l": 0.27486,
    "c": 0.08297,
    "h": 306.3
  },
  "luminance": 0.01872
}

Semantic roles & 50–950 ramp

primary
#321A47
secondary
#5C7D40
accent
#D6528F
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #321A47

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

Preview Lab → · Contrast checker → · Palette generator →

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