#321A40#321A40

#321A40 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.0% C 0.073 H 311.6°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#321A40
RGBrgb(50, 26, 64)
HSLhsl(278, 42%, 18%)
HSVhsv(278, 59%, 25%)
CMYKcmyk(21.9%, 59.4%, 0%, 74.9%)
CIE-LABlab(14.33, 20.12, -19.60)
CIE-LCHlch(14.33, 28.09, 315.75°)
OKLaboklab(26.99% 0.0487 -0.0548)
OKLCHoklch(26.99% 0.073 311.6)
XYZxyz(2.6100, 1.7871, 5.0569)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A40 #28401A
analogous
#1F1A40 #321A40 #401A3B
triadic
#321A40 #40321A #1A4032
tetradic
#321A40 #401F1A #28401A #1A3B40
square
#321A40 #401F1A #28401A #1A3B40
split-complementary
#321A40 #3B401A #1A401F
monochromatic
#110916 #110916 #321A40 #542C6C #763D97

Accessibility & contrast

On white

15.47
#321A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#321A40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A40
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A40#FFFFFF#000000##FFFFFF
##321A401.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102341
Deuteranopia (green-blind)
#18253F
Tritanopia (blue-blind)
#30202A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #321a40;
/* rgb */ color: rgb(50, 26, 64);
/* oklch */ color: oklch(27.0% 0.073 311.6);
Tailwind
colors: {
  custom: {
    50: '#6b5775',
    500: '#321a40',
    950: '#000000',
  },
}
SCSS
$custom: #321a40;
$custom-light: #6b5775;
$custom-dark: #000000;
JSON
{
  "hex": "#321a40",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 64
  },
  "hsl": {
    "h": 277.895,
    "s": 42.222,
    "l": 17.647
  },
  "oklch": {
    "l": 0.26986,
    "c": 0.07328,
    "h": 311.6
  },
  "luminance": 0.01787
}

Semantic roles & 50–950 ramp

primary
#321A40
secondary
#547640
accent
#D25684
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #321A40

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

Preview Lab → · Contrast checker → · Palette generator →

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