#321F76#321F76

#321F76 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.4% C 0.140 H 285.6°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#321F76
RGBrgb(50, 31, 118)
HSLhsl(253, 58%, 29%)
HSVhsv(253, 74%, 46%)
CMYKcmyk(57.6%, 73.7%, 0%, 53.7%)
CIE-LABlab(19.91, 33.50, -46.71)
CIE-LCHlch(19.91, 57.48, 305.65°)
OKLaboklab(32.42% 0.0376 -0.1344)
OKLCHoklch(32.42% 0.14 285.6)
XYZxyz(5.0744, 2.9658, 17.4411)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F76 #63761F
analogous
#1F3876 #321F76 #5E1F76
triadic
#321F76 #76321F #1F7632
tetradic
#321F76 #761F38 #63761F #1F765E
square
#321F76 #761F38 #63761F #1F765E
split-complementary
#321F76 #765E1F #38761F
monochromatic
#0A0618 #1D1246 #321F76 #472CA6 #6042CD

Accessibility & contrast

On white

13.18
#321F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#321F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F76
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F76#FFFFFF#000000##FFFFFF
##321F761.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#133648
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321f76;
/* rgb */ color: rgb(50, 31, 118);
/* oklch */ color: oklch(32.4% 0.140 285.6);
Tailwind
colors: {
  custom: {
    50: '#725c9e',
    500: '#321f76',
    950: '#000000',
  },
}
SCSS
$custom: #321f76;
$custom-light: #725c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#321f76",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 253.103,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32418,
    "c": 0.13954,
    "h": 285.6
  },
  "luminance": 0.02966
}

Semantic roles & 50–950 ramp

primary
#321F76
secondary
#94AA47
accent
#E246C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #321F76

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

Preview Lab → · Contrast checker → · Palette generator →

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