#321F73#321F73

#321F73 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.1% C 0.136 H 286.4°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#321F73
RGBrgb(50, 31, 115)
HSLhsl(254, 58%, 29%)
HSVhsv(254, 73%, 45%)
CMYKcmyk(56.5%, 73%, 0%, 54.9%)
CIE-LABlab(19.62, 32.54, -45.25)
CIE-LCHlch(19.62, 55.73, 305.72°)
OKLaboklab(32.13% 0.0382 -0.1301)
OKLCHoklch(32.13% 0.136 286.4)
XYZxyz(4.8990, 2.8956, 16.5171)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F73 #60731F
analogous
#1F3673 #321F73 #5C1F73
triadic
#321F73 #73321F #1F7332
tetradic
#321F73 #731F36 #60731F #1F735C
square
#321F73 #731F36 #60731F #1F735C
split-complementary
#321F73 #735C1F #36731F
monochromatic
#0A0618 #1D1243 #321F73 #472CA3 #6041CC

Accessibility & contrast

On white

13.30
#321F73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#321F73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F73
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F73#FFFFFF#000000##FFFFFF
##321F731.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003276
Deuteranopia (green-blind)
#002D71
Tritanopia (blue-blind)
#173546
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #321f73;
/* rgb */ color: rgb(50, 31, 115);
/* oklch */ color: oklch(32.1% 0.136 286.4);
Tailwind
colors: {
  custom: {
    50: '#725c9c',
    500: '#321f73',
    950: '#000000',
  },
}
SCSS
$custom: #321f73;
$custom-light: #725c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#321f73",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 115
  },
  "hsl": {
    "h": 253.571,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32127,
    "c": 0.13558,
    "h": 286.4
  },
  "luminance": 0.02896
}

Semantic roles & 50–950 ramp

primary
#321F73
secondary
#91A747
accent
#E147BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321F73

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

Preview Lab → · Contrast checker → · Palette generator →

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