#321772#321772

#321772 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.144 H 288.5°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#321772
RGBrgb(50, 23, 114)
HSLhsl(258, 66%, 27%)
HSVhsv(258, 80%, 45%)
CMYKcmyk(56.1%, 79.8%, 0%, 55.3%)
CIE-LABlab(17.94, 36.67, -47.35)
CIE-LCHlch(17.94, 59.89, 307.75°)
OKLaboklab(30.91% 0.0455 -0.1362)
OKLCHoklch(30.91% 0.144 288.5)
XYZxyz(4.6582, 2.5056, 16.1545)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321772 #577217
analogous
#172A72 #321772 #601772
triadic
#321772 #723217 #177232
tetradic
#321772 #72172A #577217 #177260
square
#321772 #72172A #577217 #177260
split-complementary
#321772 #726017 #2A7217
monochromatic
#0B0519 #1C0D3F #321772 #4821A5 #602ED5

Accessibility & contrast

On white

13.99
#321772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#321772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321772
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321772#FFFFFF#000000##FFFFFF
##3217721.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#183144
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #321772;
/* rgb */ color: rgb(50, 23, 114);
/* oklch */ color: oklch(30.9% 0.144 288.5);
Tailwind
colors: {
  custom: {
    50: '#72589b',
    500: '#321772',
    950: '#000000',
  },
}
SCSS
$custom: #321772;
$custom-light: #72589b;
$custom-dark: #000000;
JSON
{
  "hex": "#321772",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 257.802,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30911,
    "c": 0.14361,
    "h": 288.5
  },
  "luminance": 0.02506
}

Semantic roles & 50–950 ramp

primary
#321772
secondary
#88A83D
accent
#E93EB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #321772

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

Preview Lab → · Contrast checker → · Palette generator →

#321772 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva