#321A6E#321A6E

#321A6E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.135 H 289.0°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#321A6E
RGBrgb(50, 26, 110)
HSLhsl(257, 62%, 27%)
HSVhsv(257, 76%, 43%)
CMYKcmyk(54.5%, 76.4%, 0%, 56.9%)
CIE-LABlab(18.11, 33.84, -44.49)
CIE-LCHlch(18.11, 55.89, 307.25°)
OKLaboklab(30.9% 0.0441 -0.1278)
OKLCHoklch(30.9% 0.135 289)
XYZxyz(4.4984, 2.5425, 15.0025)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A6E #566E1A
analogous
#1A2C6E #321A6E #5C1A6E
triadic
#321A6E #6E321A #1A6E32
tetradic
#321A6E #6E1A2C #566E1A #1A6E5C
square
#321A6E #6E1A2C #566E1A #1A6E5C
split-complementary
#321A6E #6E5C1A #2C6E1A
monochromatic
#0B0619 #1C0E3D #321A6E #4926A0 #6034CF

Accessibility & contrast

On white

13.92
#321A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321A6E
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A6E#FFFFFF#000000##FFFFFF
##321A6E1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321a6e;
/* rgb */ color: rgb(50, 26, 110);
/* oklch */ color: oklch(30.9% 0.135 289.0);
Tailwind
colors: {
  custom: {
    50: '#715998',
    500: '#321a6e',
    950: '#000000',
  },
}
SCSS
$custom: #321a6e;
$custom-light: #715998;
$custom-dark: #000000;
JSON
{
  "hex": "#321a6e",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 110
  },
  "hsl": {
    "h": 257.143,
    "s": 61.765,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30905,
    "c": 0.13521,
    "h": 289
  },
  "luminance": 0.02543
}

Semantic roles & 50–950 ramp

primary
#321A6E
secondary
#87A341
accent
#E543B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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