#321D7C#321D7C

#321D7C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.150 H 284.7°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#321D7C
RGBrgb(50, 29, 124)
HSLhsl(253, 62%, 30%)
HSVhsv(253, 77%, 49%)
CMYKcmyk(59.7%, 76.6%, 0%, 51.4%)
CIE-LABlab(20.09, 36.55, -50.24)
CIE-LCHlch(20.09, 62.13, 306.04°)
OKLaboklab(32.73% 0.0379 -0.1447)
OKLCHoklch(32.73% 0.15 284.7)
XYZxyz(5.3917, 3.0117, 19.3621)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D7C #677C1D
analogous
#1D387C #321D7C #611D7C
triadic
#321D7C #7C321D #1D7C32
tetradic
#321D7C #7C1D38 #677C1D #1D7C61
square
#321D7C #7C1D38 #677C1D #1D7C61
split-complementary
#321D7C #7C611D #387C1D
monochromatic
#0A0619 #1E114A #321D7C #4629AE #6141D3

Accessibility & contrast

On white

13.11
#321D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#321D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D7C
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D7C#FFFFFF#000000##FFFFFF
##321D7C1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#0A374B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321d7c;
/* rgb */ color: rgb(50, 29, 124);
/* oklch */ color: oklch(32.7% 0.150 284.7);
Tailwind
colors: {
  custom: {
    50: '#735ca3',
    500: '#321d7c',
    950: '#000000',
  },
}
SCSS
$custom: #321d7c;
$custom-light: #735ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#321d7c",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 253.263,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.32729,
    "c": 0.14959,
    "h": 284.7
  },
  "luminance": 0.03012
}

Semantic roles & 50–950 ramp

primary
#321D7C
secondary
#98B045
accent
#E543C1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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