#321A6D#321A6D

#321A6D is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.134 H 289.3°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#321A6D
RGBrgb(50, 26, 109)
HSLhsl(257, 61%, 26%)
HSVhsv(257, 76%, 43%)
CMYKcmyk(54.1%, 76.1%, 0%, 57.3%)
CIE-LABlab(18.01, 33.53, -44.00)
CIE-LCHlch(18.01, 55.32, 307.31°)
OKLaboklab(30.81% 0.0443 -0.1264)
OKLCHoklch(30.81% 0.134 289.3)
XYZxyz(4.4443, 2.5208, 14.7174)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A6D #556D1A
analogous
#1A2C6D #321A6D #5C1A6D
triadic
#321A6D #6D321A #1A6D32
tetradic
#321A6D #6D1A2C #556D1A #1A6D5C
square
#321A6D #6D1A2C #556D1A #1A6D5C
split-complementary
#321A6D #6D5C1A #2C6D1A
monochromatic
#0B0619 #1B0E3C #321A6D #49269E #6033CE

Accessibility & contrast

On white

13.96
#321A6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#321A6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A6D
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A6D#FFFFFF#000000##FFFFFF
##321A6D1.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6F
Deuteranopia (green-blind)
#002A6B
Tritanopia (blue-blind)
#1C3042
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #321a6d;
/* rgb */ color: rgb(50, 26, 109);
/* oklch */ color: oklch(30.8% 0.134 289.3);
Tailwind
colors: {
  custom: {
    50: '#715998',
    500: '#321a6d',
    950: '#000000',
  },
}
SCSS
$custom: #321a6d;
$custom-light: #715998;
$custom-dark: #000000;
JSON
{
  "hex": "#321a6d",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 109
  },
  "hsl": {
    "h": 257.349,
    "s": 61.481,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30807,
    "c": 0.13393,
    "h": 289.3
  },
  "luminance": 0.02521
}

Semantic roles & 50–950 ramp

primary
#321A6D
secondary
#86A241
accent
#E543B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321A6D

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

Preview Lab → · Contrast checker → · Palette generator →

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