#321874#321874

#321874 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.145 H 287.7°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#321874
RGBrgb(50, 24, 116)
HSLhsl(257, 66%, 27%)
HSVhsv(257, 79%, 45%)
CMYKcmyk(56.9%, 79.3%, 0%, 54.5%)
CIE-LABlab(18.33, 36.76, -48.01)
CIE-LCHlch(18.33, 60.47, 307.44°)
OKLaboklab(31.24% 0.0441 -0.1381)
OKLCHoklch(31.24% 0.145 287.7)
XYZxyz(4.7935, 2.5921, 16.7674)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321874 #5A7418
analogous
#182C74 #321874 #601874
triadic
#321874 #743218 #187432
tetradic
#321874 #74182C #5A7418 #187460
square
#321874 #74182C #5A7418 #187460
split-complementary
#321874 #746018 #2C7418
monochromatic
#0B0519 #1C0E41 #321874 #4822A7 #6032D5

Accessibility & contrast

On white

13.83
#321874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#321874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321874
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321874#FFFFFF#000000##FFFFFF
##3218741.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002A72
Tritanopia (blue-blind)
#163245
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #321874;
/* rgb */ color: rgb(50, 24, 116);
/* oklch */ color: oklch(31.2% 0.145 287.7);
Tailwind
colors: {
  custom: {
    50: '#72589d',
    500: '#321874',
    950: '#000000',
  },
}
SCSS
$custom: #321874;
$custom-light: #72589d;
$custom-dark: #000000;
JSON
{
  "hex": "#321874",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 256.957,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31243,
    "c": 0.14501,
    "h": 287.7
  },
  "luminance": 0.02592
}

Semantic roles & 50–950 ramp

primary
#321874
secondary
#8BA93F
accent
#E93FB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #321874

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

Preview Lab → · Contrast checker → · Palette generator →

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