#321872#321872

#321872 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.143 H 288.3°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#321872
RGBrgb(50, 24, 114)
HSLhsl(257, 65%, 27%)
HSVhsv(257, 79%, 45%)
CMYKcmyk(56.1%, 78.9%, 0%, 55.3%)
CIE-LABlab(18.13, 36.15, -47.06)
CIE-LCHlch(18.13, 59.34, 307.53°)
OKLaboklab(31.04% 0.0447 -0.1353)
OKLCHoklch(31.04% 0.143 288.3)
XYZxyz(4.6784, 2.5461, 16.1612)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321872 #587218
analogous
#182B72 #321872 #5F1872
triadic
#321872 #723218 #187232
tetradic
#321872 #72182B #587218 #18725F
square
#321872 #72182B #587218 #18725F
split-complementary
#321872 #725F18 #2B7218
monochromatic
#0B0519 #1C0D3F #321872 #4823A5 #6031D4

Accessibility & contrast

On white

13.91
#321872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#321872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321872
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321872#FFFFFF#000000##FFFFFF
##3218721.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.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: #321872;
/* rgb */ color: rgb(50, 24, 114);
/* oklch */ color: oklch(31.0% 0.143 288.3);
Tailwind
colors: {
  custom: {
    50: '#72589b',
    500: '#321872',
    950: '#000000',
  },
}
SCSS
$custom: #321872;
$custom-light: #72589b;
$custom-dark: #000000;
JSON
{
  "hex": "#321872",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 257.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31038,
    "c": 0.14253,
    "h": 288.3
  },
  "luminance": 0.02546
}

Semantic roles & 50–950 ramp

primary
#321872
secondary
#89A73E
accent
#E840B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #321872

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

Preview Lab → · Contrast checker → · Palette generator →

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