#321E7D#321E7D

#321E7D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.150 H 284.3°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#321E7D
RGBrgb(50, 30, 125)
HSLhsl(253, 61%, 30%)
HSVhsv(253, 76%, 49%)
CMYKcmyk(60%, 76%, 0%, 51%)
CIE-LABlab(20.39, 36.31, -50.39)
CIE-LCHlch(20.39, 62.11, 305.78°)
OKLaboklab(32.97% 0.0369 -0.1451)
OKLCHoklch(32.97% 0.15 284.3)
XYZxyz(5.4802, 3.0870, 19.7051)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E7D #697D1E
analogous
#1E397D #321E7D #621E7D
triadic
#321E7D #7D321E #1E7D32
tetradic
#321E7D #7D1E39 #697D1E #1E7D62
square
#321E7D #7D1E39 #697D1E #1E7D62
split-complementary
#321E7D #7D621E #397D1E
monochromatic
#0B061A #1E124C #321E7D #462AAE #6143D2

Accessibility & contrast

On white

12.98
#321E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#321E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E7D
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E7D#FFFFFF#000000##FFFFFF
##321E7D1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321e7d;
/* rgb */ color: rgb(50, 30, 125);
/* oklch */ color: oklch(33.0% 0.150 284.3);
Tailwind
colors: {
  custom: {
    50: '#745ca4',
    500: '#321e7d',
    950: '#000000',
  },
}
SCSS
$custom: #321e7d;
$custom-light: #745ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#321e7d",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 252.632,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3297,
    "c": 0.14974,
    "h": 284.3
  },
  "luminance": 0.03087
}

Semantic roles & 50–950 ramp

primary
#321E7D
secondary
#9AB046
accent
#E443C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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