#321372#321372

#321372 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.148 H 289.2°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#321372
RGBrgb(50, 19, 114)
HSLhsl(260, 71%, 26%)
HSVhsv(260, 83%, 45%)
CMYKcmyk(56.1%, 83.3%, 0%, 55.3%)
CIE-LABlab(17.27, 38.62, -48.47)
CIE-LCHlch(17.27, 61.97, 308.55°)
OKLaboklab(30.44% 0.0486 -0.1394)
OKLCHoklch(30.44% 0.148 289.2)
XYZxyz(4.5846, 2.3585, 16.1300)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321372 #537213
analogous
#132372 #321372 #611372
triadic
#321372 #723213 #137232
tetradic
#321372 #721323 #537213 #137261
square
#321372 #721323 #537213 #137261
split-complementary
#321372 #726113 #237213
monochromatic
#0C041A #1B0A3E #321372 #491CA6 #6025DB

Accessibility & contrast

On white

14.27
#321372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#321372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321372
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321372#FFFFFF#000000##FFFFFF
##3213721.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#192F43
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321372;
/* rgb */ color: rgb(50, 19, 114);
/* oklch */ color: oklch(30.4% 0.148 289.2);
Tailwind
colors: {
  custom: {
    50: '#72559c',
    500: '#321372',
    950: '#000000',
  },
}
SCSS
$custom: #321372;
$custom-light: #72559c;
$custom-dark: #000000;
JSON
{
  "hex": "#321372",
  "rgb": {
    "r": 50,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 259.579,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30439,
    "c": 0.14764,
    "h": 289.2
  },
  "luminance": 0.02359
}

Semantic roles & 50–950 ramp

primary
#321372
secondary
#84A938
accent
#EE3AB3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #321372

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

Preview Lab → · Contrast checker → · Palette generator →

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