#321A4B#321A4B

#321A4B is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.089 H 303.8°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#321A4B
RGBrgb(50, 26, 75)
HSLhsl(269, 49%, 20%)
HSVhsv(269, 65%, 29%)
CMYKcmyk(33.3%, 65.3%, 0%, 70.6%)
CIE-LABlab(15.09, 23.21, -26.03)
CIE-LCHlch(15.09, 34.87, 311.73°)
OKLaboklab(27.79% 0.0492 -0.0736)
OKLCHoklch(27.79% 0.089 303.8)
XYZxyz(2.9545, 1.9249, 6.8711)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A4B #334B1A
analogous
#1A1A4B #321A4B #4B1A4B
triadic
#321A4B #4B321A #1A4B32
tetradic
#321A4B #4B1A1A #334B1A #1A4B4B
square
#321A4B #4B1A1A #334B1A #1A4B4B
split-complementary
#321A4B #4B4B1A #1A4B1A
monochromatic
#0F0817 #140A1E #321A4B #502A78 #6F3AA6

Accessibility & contrast

On white

15.16
#321A4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#321A4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A4B
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A4B#FFFFFF#000000##FFFFFF
##321A4B1.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04254D
Deuteranopia (green-blind)
#0E264A
Tritanopia (blue-blind)
#2D242F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #321a4b;
/* rgb */ color: rgb(50, 26, 75);
/* oklch */ color: oklch(27.8% 0.089 303.8);
Tailwind
colors: {
  custom: {
    50: '#6c587e',
    500: '#321a4b',
    950: '#000000',
  },
}
SCSS
$custom: #321a4b;
$custom-light: #6c587e;
$custom-dark: #000000;
JSON
{
  "hex": "#321a4b",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 75
  },
  "hsl": {
    "h": 269.388,
    "s": 48.515,
    "l": 19.804
  },
  "oklch": {
    "l": 0.2779,
    "c": 0.08851,
    "h": 303.8
  },
  "luminance": 0.01925
}

Semantic roles & 50–950 ramp

primary
#321A4B
secondary
#618140
accent
#D85095
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #321A4B

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

Preview Lab → · Contrast checker → · Palette generator →

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