#321548#321548

#321548 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.093 H 307.4°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#321548
RGBrgb(50, 21, 72)
HSLhsl(274, 55%, 18%)
HSVhsv(274, 71%, 28%)
CMYKcmyk(30.6%, 70.8%, 0%, 71.8%)
CIE-LABlab(13.72, 25.43, -26.15)
CIE-LCHlch(13.72, 36.48, 314.21°)
OKLaboklab(26.73% 0.0565 -0.0739)
OKLCHoklch(26.73% 0.093 307.4)
XYZxyz(2.7530, 1.6824, 6.3093)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321548 #2B4815
analogous
#181548 #321548 #481544
triadic
#321548 #483215 #154832
tetradic
#321548 #481815 #2B4815 #154448
square
#321548 #481815 #2B4815 #154448
split-complementary
#321548 #444815 #154818
monochromatic
#100718 #110719 #321548 #532377 #7431A7

Accessibility & contrast

On white

15.71
#321548 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#321548 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321548
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321548#FFFFFF#000000##FFFFFF
##3215481.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224A
Deuteranopia (green-blind)
#0B2347
Tritanopia (blue-blind)
#2F1F2C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #321548;
/* rgb */ color: rgb(50, 21, 72);
/* oklch */ color: oklch(26.7% 0.093 307.4);
Tailwind
colors: {
  custom: {
    50: '#6c547b',
    500: '#321548',
    950: '#000000',
  },
}
SCSS
$custom: #321548;
$custom-light: #6c547b;
$custom-dark: #000000;
JSON
{
  "hex": "#321548",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 72
  },
  "hsl": {
    "h": 274.118,
    "s": 54.839,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26726,
    "c": 0.09305,
    "h": 307.4
  },
  "luminance": 0.01682
}

Semantic roles & 50–950 ramp

primary
#321548
secondary
#588039
accent
#DE4A8A
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #321548

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

Preview Lab → · Contrast checker → · Palette generator →

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