#321048#321048

#321048 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.101 H 308.8°. Best body text is #FFFFFF at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#321048
RGBrgb(50, 16, 72)
HSLhsl(276, 64%, 17%)
HSVhsv(276, 78%, 28%)
CMYKcmyk(30.6%, 77.8%, 0%, 71.8%)
CIE-LABlab(12.71, 28.23, -27.77)
CIE-LCHlch(12.71, 39.60, 315.47°)
OKLaboklab(26% 0.0632 -0.0787)
OKLCHoklch(26% 0.101 308.8)
XYZxyz(2.6701, 1.5166, 6.2817)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321048 #264810
analogous
#161048 #321048 #481042
triadic
#321048 #483210 #104832
tetradic
#321048 #481610 #264810 #104248
square
#321048 #481610 #264810 #104248
split-complementary
#321048 #424810 #104816
monochromatic
#110619 #110619 #321048 #551B7A #7826AC

Accessibility & contrast

On white

16.11
#321048 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#321048 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321048
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321048#FFFFFF#000000##FFFFFF
##3210481.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204A
Deuteranopia (green-blind)
#052147
Tritanopia (blue-blind)
#2F1C2A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #321048;
/* rgb */ color: rgb(50, 16, 72);
/* oklch */ color: oklch(26.0% 0.101 308.8);
Tailwind
colors: {
  custom: {
    50: '#6d517b',
    500: '#321048',
    950: '#000000',
  },
}
SCSS
$custom: #321048;
$custom-light: #6d517b;
$custom-dark: #000000;
JSON
{
  "hex": "#321048",
  "rgb": {
    "r": 50,
    "g": 16,
    "b": 72
  },
  "hsl": {
    "h": 276.429,
    "s": 63.636,
    "l": 17.255
  },
  "oklch": {
    "l": 0.26,
    "c": 0.10088,
    "h": 308.8
  },
  "luminance": 0.01517
}

Semantic roles & 50–950 ramp

primary
#321048
secondary
#518232
accent
#E74182
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #321048

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

Preview Lab → · Contrast checker → · Palette generator →

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