#321A4C#321A4C

#321A4C is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.090 H 303.2°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#321A4C
RGBrgb(50, 26, 76)
HSLhsl(269, 49%, 20%)
HSVhsv(269, 66%, 30%)
CMYKcmyk(34.2%, 65.8%, 0%, 70.2%)
CIE-LABlab(15.16, 23.50, -26.59)
CIE-LCHlch(15.16, 35.49, 311.47°)
OKLaboklab(27.87% 0.0492 -0.0752)
OKLCHoklch(27.87% 0.09 303.2)
XYZxyz(2.9890, 1.9387, 7.0528)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A4C #344C1A
analogous
#1A1B4C #321A4C #4B1A4C
triadic
#321A4C #4C321A #1A4C32
tetradic
#321A4C #4C1A1B #344C1A #1A4C4B
square
#321A4C #4C1A1B #344C1A #1A4C4B
split-complementary
#321A4C #4C4B1A #1B4C1A
monochromatic
#0F0817 #140A1E #321A4C #502A7A #6E39A7

Accessibility & contrast

On white

15.13
#321A4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321A4C
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A4C#FFFFFF#000000##FFFFFF
##321A4C1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03264E
Deuteranopia (green-blind)
#0D264B
Tritanopia (blue-blind)
#2D2430
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #321a4c;
/* rgb */ color: rgb(50, 26, 76);
/* oklch */ color: oklch(27.9% 0.090 303.2);
Tailwind
colors: {
  custom: {
    50: '#6c587e',
    500: '#321a4c',
    950: '#000000',
  },
}
SCSS
$custom: #321a4c;
$custom-light: #6c587e;
$custom-dark: #000000;
JSON
{
  "hex": "#321a4c",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 76
  },
  "hsl": {
    "h": 268.8,
    "s": 49.02,
    "l": 20
  },
  "oklch": {
    "l": 0.27867,
    "c": 0.08988,
    "h": 303.2
  },
  "luminance": 0.01939
}

Semantic roles & 50–950 ramp

primary
#321A4C
secondary
#628240
accent
#D94F97
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #321A4C

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

Preview Lab → · Contrast checker → · Palette generator →

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