#321D7D#321D7D

#321D7D is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.151 H 284.5°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#321D7D
RGBrgb(50, 29, 125)
HSLhsl(253, 62%, 30%)
HSVhsv(253, 77%, 49%)
CMYKcmyk(60%, 76.8%, 0%, 51%)
CIE-LABlab(20.19, 36.87, -50.71)
CIE-LCHlch(20.19, 62.70, 306.02°)
OKLaboklab(32.83% 0.0377 -0.1461)
OKLCHoklch(32.83% 0.151 284.5)
XYZxyz(5.4553, 3.0372, 19.6968)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D7D #687D1D
analogous
#1D387D #321D7D #621D7D
triadic
#321D7D #7D321D #1D7D32
tetradic
#321D7D #7D1D38 #687D1D #1D7D62
square
#321D7D #7D1D38 #687D1D #1D7D62
split-complementary
#321D7D #7D621D #387D1D
monochromatic
#0A061A #1E114B #321D7D #4629AF #6141D3

Accessibility & contrast

On white

13.06
#321D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#321D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D7D
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D7D#FFFFFF#000000##FFFFFF
##321D7D1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#08384B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #321d7d;
/* rgb */ color: rgb(50, 29, 125);
/* oklch */ color: oklch(32.8% 0.151 284.5);
Tailwind
colors: {
  custom: {
    50: '#745ca4',
    500: '#321d7d',
    950: '#000000',
  },
}
SCSS
$custom: #321d7d;
$custom-light: #745ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#321d7d",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 253.125,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32831,
    "c": 0.15085,
    "h": 284.5
  },
  "luminance": 0.03038
}

Semantic roles & 50–950 ramp

primary
#321D7D
secondary
#99B145
accent
#E542C2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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