#321D74#321D74

#321D74 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.139 H 286.6°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#321D74
RGBrgb(50, 29, 116)
HSLhsl(254, 60%, 28%)
HSVhsv(254, 75%, 45%)
CMYKcmyk(56.9%, 75%, 0%, 54.5%)
CIE-LABlab(19.30, 34.02, -46.42)
CIE-LCHlch(19.30, 57.56, 306.24°)
OKLaboklab(31.93% 0.0399 -0.1335)
OKLCHoklch(31.93% 0.139 286.6)
XYZxyz(4.9062, 2.8175, 16.8049)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D74 #5F741D
analogous
#1D3374 #321D74 #5D1D74
triadic
#321D74 #74321D #1D7432
tetradic
#321D74 #741D33 #5F741D #1D745D
square
#321D74 #741D33 #5F741D #1D745D
split-complementary
#321D74 #745D1D #33741D
monochromatic
#0B0618 #1D1143 #321D74 #4729A5 #603DCE

Accessibility & contrast

On white

13.43
#321D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#321D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D74
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D74#FFFFFF#000000##FFFFFF
##321D741.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#002C72
Tritanopia (blue-blind)
#163446
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #321d74;
/* rgb */ color: rgb(50, 29, 116);
/* oklch */ color: oklch(31.9% 0.139 286.6);
Tailwind
colors: {
  custom: {
    50: '#725b9d',
    500: '#321d74',
    950: '#000000',
  },
}
SCSS
$custom: #321d74;
$custom-light: #725b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#321d74",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 116
  },
  "hsl": {
    "h": 254.483,
    "s": 60,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31926,
    "c": 0.13934,
    "h": 286.6
  },
  "luminance": 0.02818
}

Semantic roles & 50–950 ramp

primary
#321D74
secondary
#90A845
accent
#E345BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321D74

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

Preview Lab → · Contrast checker → · Palette generator →

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