#321A6F#321A6F

#321A6F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.136 H 288.7°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#321A6F
RGBrgb(50, 26, 111)
HSLhsl(257, 62%, 27%)
HSVhsv(257, 77%, 44%)
CMYKcmyk(55%, 76.6%, 0%, 56.5%)
CIE-LABlab(18.21, 34.15, -44.98)
CIE-LCHlch(18.21, 56.47, 307.20°)
OKLaboklab(31% 0.0438 -0.1293)
OKLCHoklch(31% 0.136 288.7)
XYZxyz(4.5532, 2.5644, 15.2909)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A6F #576F1A
analogous
#1A2D6F #321A6F #5D1A6F
triadic
#321A6F #6F321A #1A6F32
tetradic
#321A6F #6F1A2D #576F1A #1A6F5D
square
#321A6F #6F1A2D #576F1A #1A6F5D
split-complementary
#321A6F #6F5D1A #2D6F1A
monochromatic
#0B0619 #1C0E3D #321A6F #4826A1 #6034CF

Accessibility & contrast

On white

13.88
#321A6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#321A6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A6F
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A6F#FFFFFF#000000##FFFFFF
##321A6F1.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#002A6D
Tritanopia (blue-blind)
#1B3143
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #321a6f;
/* rgb */ color: rgb(50, 26, 111);
/* oklch */ color: oklch(31.0% 0.136 288.7);
Tailwind
colors: {
  custom: {
    50: '#715999',
    500: '#321a6f',
    950: '#000000',
  },
}
SCSS
$custom: #321a6f;
$custom-light: #715999;
$custom-dark: #000000;
JSON
{
  "hex": "#321a6f",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 111
  },
  "hsl": {
    "h": 256.941,
    "s": 62.044,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31004,
    "c": 0.13649,
    "h": 288.7
  },
  "luminance": 0.02565
}

Semantic roles & 50–950 ramp

primary
#321A6F
secondary
#88A441
accent
#E543B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321A6F

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

Preview Lab → · Contrast checker → · Palette generator →

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