#321D7E#321D7E

#321D7E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.152 H 284.2°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#321D7E
RGBrgb(50, 29, 126)
HSLhsl(253, 63%, 30%)
HSVhsv(253, 77%, 49%)
CMYKcmyk(60.3%, 77%, 0%, 50.6%)
CIE-LABlab(20.29, 37.18, -51.18)
CIE-LCHlch(20.29, 63.26, 306.00°)
OKLaboklab(32.93% 0.0374 -0.1474)
OKLCHoklch(32.93% 0.152 284.2)
XYZxyz(5.5195, 3.0628, 20.0350)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D7E #697E1D
analogous
#1D387E #321D7E #631D7E
triadic
#321D7E #7E321D #1D7E32
tetradic
#321D7E #7E1D38 #697E1D #1D7E63
square
#321D7E #7E1D38 #697E1D #1D7E63
split-complementary
#321D7E #7E631D #387E1D
monochromatic
#0B061B #1E124C #321D7E #4628B0 #6142D3

Accessibility & contrast

On white

13.02
#321D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321D7E
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D7E#FFFFFF#000000##FFFFFF
##321D7E1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#06384C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #321d7e;
/* rgb */ color: rgb(50, 29, 126);
/* oklch */ color: oklch(32.9% 0.152 284.2);
Tailwind
colors: {
  custom: {
    50: '#745ca4',
    500: '#321d7e',
    950: '#000000',
  },
}
SCSS
$custom: #321d7e;
$custom-light: #745ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#321d7e",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 252.99,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32934,
    "c": 0.15211,
    "h": 284.2
  },
  "luminance": 0.03063
}

Semantic roles & 50–950 ramp

primary
#321D7E
secondary
#9AB145
accent
#E642C2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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