#321574#321574

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

Color values

HEX#321574
RGBrgb(50, 21, 116)
HSLhsl(258, 69%, 27%)
HSVhsv(258, 82%, 45%)
CMYKcmyk(56.9%, 81.9%, 0%, 54.5%)
CIE-LABlab(17.81, 38.26, -48.87)
CIE-LCHlch(17.81, 62.07, 308.06°)
OKLaboklab(30.88% 0.0465 -0.1406)
OKLCHoklch(30.88% 0.148 288.3)
XYZxyz(4.7350, 2.4752, 16.7479)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321574 #577415
analogous
#152874 #321574 #621574
triadic
#321574 #743215 #157432
tetradic
#321574 #741528 #577415 #157462
square
#321574 #741528 #577415 #157462
split-complementary
#321574 #746215 #287415
monochromatic
#0B051A #1C0C40 #321574 #481EA8 #602BD9

Accessibility & contrast

On white

14.05
#321574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321574
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321574#FFFFFF#000000##FFFFFF
##3215741.0014.051.5014.05
#FFFFFF14.051.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#163144
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #321574;
/* rgb */ color: rgb(50, 21, 116);
/* oklch */ color: oklch(30.9% 0.148 288.3);
Tailwind
colors: {
  custom: {
    50: '#73579d',
    500: '#321574',
    950: '#000000',
  },
}
SCSS
$custom: #321574;
$custom-light: #73579d;
$custom-dark: #000000;
JSON
{
  "hex": "#321574",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 258.316,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30877,
    "c": 0.14809,
    "h": 288.3
  },
  "luminance": 0.02475
}

Semantic roles & 50–950 ramp

primary
#321574
secondary
#88AA3B
accent
#EC3CB6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #321574

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

Preview Lab → · Contrast checker → · Palette generator →

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