#321A6A#321A6A

#321A6A is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.5% C 0.130 H 290.2°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#321A6A
RGBrgb(50, 26, 106)
HSLhsl(258, 61%, 26%)
HSVhsv(258, 75%, 42%)
CMYKcmyk(52.8%, 75.5%, 0%, 58.4%)
CIE-LABlab(17.72, 32.60, -42.51)
CIE-LCHlch(17.72, 53.57, 307.48°)
OKLaboklab(30.51% 0.045 -0.122)
OKLCHoklch(30.51% 0.13 290.2)
XYZxyz(4.2856, 2.4573, 13.8814)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A6A #526A1A
analogous
#1A2A6A #321A6A #5A1A6A
triadic
#321A6A #6A321A #1A6A32
tetradic
#321A6A #6A1A2A #526A1A #1A6A5A
square
#321A6A #6A1A2A #526A1A #1A6A5A
split-complementary
#321A6A #6A5A1A #2A6A1A
monochromatic
#0C0619 #1B0E39 #321A6A #49269B #6032CC

Accessibility & contrast

On white

14.08
#321A6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#321A6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A6A
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A6A#FFFFFF#000000##FFFFFF
##321A6A1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6C
Deuteranopia (green-blind)
#002A68
Tritanopia (blue-blind)
#1F2F40
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #321a6a;
/* rgb */ color: rgb(50, 26, 106);
/* oklch */ color: oklch(30.5% 0.130 290.2);
Tailwind
colors: {
  custom: {
    50: '#705995',
    500: '#321a6a',
    950: '#000000',
  },
}
SCSS
$custom: #321a6a;
$custom-light: #705995;
$custom-dark: #000000;
JSON
{
  "hex": "#321a6a",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 106
  },
  "hsl": {
    "h": 258,
    "s": 60.606,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30514,
    "c": 0.13008,
    "h": 290.2
  },
  "luminance": 0.02458
}

Semantic roles & 50–950 ramp

primary
#321A6A
secondary
#839F40
accent
#E444B4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #321A6A

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

Preview Lab → · Contrast checker → · Palette generator →

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