#321873#321873

#321873 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.144 H 288.0°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#321873
RGBrgb(50, 24, 115)
HSLhsl(257, 65%, 27%)
HSVhsv(257, 79%, 45%)
CMYKcmyk(56.5%, 79.1%, 0%, 54.9%)
CIE-LABlab(18.23, 36.45, -47.53)
CIE-LCHlch(18.23, 59.90, 307.48°)
OKLaboklab(31.14% 0.0444 -0.1367)
OKLCHoklch(31.14% 0.144 288)
XYZxyz(4.7356, 2.5689, 16.4627)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321873 #597318
analogous
#182B73 #321873 #601873
triadic
#321873 #733218 #187332
tetradic
#321873 #73182B #597318 #187360
square
#321873 #73182B #597318 #187360
split-complementary
#321873 #736018 #2B7318
monochromatic
#0B0519 #1C0D40 #321873 #4823A6 #6031D4

Accessibility & contrast

On white

13.87
#321873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321873
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321873#FFFFFF#000000##FFFFFF
##3218731.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#173244
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #321873;
/* rgb */ color: rgb(50, 24, 115);
/* oklch */ color: oklch(31.1% 0.144 288.0);
Tailwind
colors: {
  custom: {
    50: '#72589c',
    500: '#321873',
    950: '#000000',
  },
}
SCSS
$custom: #321873;
$custom-light: #72589c;
$custom-dark: #000000;
JSON
{
  "hex": "#321873",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 115
  },
  "hsl": {
    "h": 257.143,
    "s": 65.468,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3114,
    "c": 0.14377,
    "h": 288
  },
  "luminance": 0.02569
}

Semantic roles & 50–950 ramp

primary
#321873
secondary
#8AA83F
accent
#E83FB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #321873

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

Preview Lab → · Contrast checker → · Palette generator →

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