#321A6C#321A6C

#321A6C is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.133 H 289.6°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#321A6C
RGBrgb(50, 26, 108)
HSLhsl(258, 61%, 26%)
HSVhsv(258, 76%, 42%)
CMYKcmyk(53.7%, 75.9%, 0%, 57.6%)
CIE-LABlab(17.92, 33.22, -43.51)
CIE-LCHlch(17.92, 54.74, 307.36°)
OKLaboklab(30.71% 0.0445 -0.1249)
OKLCHoklch(30.71% 0.133 289.6)
XYZxyz(4.3908, 2.4994, 14.4355)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A6C #546C1A
analogous
#1A2B6C #321A6C #5B1A6C
triadic
#321A6C #6C321A #1A6C32
tetradic
#321A6C #6C1A2B #546C1A #1A6C5B
square
#321A6C #6C1A2B #546C1A #1A6C5B
split-complementary
#321A6C #6C5B1A #2B6C1A
monochromatic
#0B0619 #1B0E3B #321A6C #49269D #6033CE

Accessibility & contrast

On white

14.00
#321A6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321A6C
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A6C#FFFFFF#000000##FFFFFF
##321A6C1.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#002A6A
Tritanopia (blue-blind)
#1D3041
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #321a6c;
/* rgb */ color: rgb(50, 26, 108);
/* oklch */ color: oklch(30.7% 0.133 289.6);
Tailwind
colors: {
  custom: {
    50: '#715997',
    500: '#321a6c',
    950: '#000000',
  },
}
SCSS
$custom: #321a6c;
$custom-light: #715997;
$custom-dark: #000000;
JSON
{
  "hex": "#321a6c",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 108
  },
  "hsl": {
    "h": 257.561,
    "s": 61.194,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30709,
    "c": 0.13265,
    "h": 289.6
  },
  "luminance": 0.025
}

Semantic roles & 50–950 ramp

primary
#321A6C
secondary
#85A141
accent
#E443B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #321A6C

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

Preview Lab → · Contrast checker → · Palette generator →

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