#321D79#321D79

#321D79 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.146 H 285.4°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#321D79
RGBrgb(50, 29, 121)
HSLhsl(254, 61%, 29%)
HSVhsv(254, 76%, 47%)
CMYKcmyk(58.7%, 76%, 0%, 52.5%)
CIE-LABlab(19.79, 35.61, -48.82)
CIE-LCHlch(19.79, 60.43, 306.10°)
OKLaboklab(32.42% 0.0387 -0.1405)
OKLCHoklch(32.42% 0.146 285.4)
XYZxyz(5.2049, 2.9370, 18.3781)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D79 #64791D
analogous
#1D3679 #321D79 #601D79
triadic
#321D79 #79321D #1D7932
tetradic
#321D79 #791D36 #64791D #1D7960
square
#321D79 #791D36 #64791D #1D7960
split-complementary
#321D79 #79601D #36791D
monochromatic
#0A0619 #1E1148 #321D79 #4629AA #613FD1

Accessibility & contrast

On white

13.23
#321D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321D79
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D79#FFFFFF#000000##FFFFFF
##321D791.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#0F3649
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321d79;
/* rgb */ color: rgb(50, 29, 121);
/* oklch */ color: oklch(32.4% 0.146 285.4);
Tailwind
colors: {
  custom: {
    50: '#735ba1',
    500: '#321d79',
    950: '#000000',
  },
}
SCSS
$custom: #321d79;
$custom-light: #735ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#321d79",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 253.696,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32425,
    "c": 0.14577,
    "h": 285.4
  },
  "luminance": 0.02937
}

Semantic roles & 50–950 ramp

primary
#321D79
secondary
#95AD45
accent
#E443C0
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321D79

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

Preview Lab → · Contrast checker → · Palette generator →

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