#321148#321148

#321148 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.099 H 308.5°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#321148
RGBrgb(50, 17, 72)
HSLhsl(276, 62%, 17%)
HSVhsv(276, 76%, 28%)
CMYKcmyk(30.6%, 76.4%, 0%, 71.8%)
CIE-LABlab(12.90, 27.70, -27.47)
CIE-LCHlch(12.90, 39.01, 315.24°)
OKLaboklab(26.14% 0.0619 -0.0778)
OKLCHoklch(26.14% 0.099 308.5)
XYZxyz(2.6853, 1.5469, 6.2868)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321148 #274811
analogous
#161148 #321148 #481143
triadic
#321148 #483211 #114832
tetradic
#321148 #481611 #274811 #114348
square
#321148 #481611 #274811 #114348
split-complementary
#321148 #434811 #114816
monochromatic
#110619 #110619 #321148 #541D7A #7728AB

Accessibility & contrast

On white

16.04
#321148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#321148 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321148
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321148#FFFFFF#000000##FFFFFF
##3211481.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321148;
/* rgb */ color: rgb(50, 17, 72);
/* oklch */ color: oklch(26.1% 0.099 308.5);
Tailwind
colors: {
  custom: {
    50: '#6c527b',
    500: '#321148',
    950: '#000000',
  },
}
SCSS
$custom: #321148;
$custom-light: #6c527b;
$custom-dark: #000000;
JSON
{
  "hex": "#321148",
  "rgb": {
    "r": 50,
    "g": 17,
    "b": 72
  },
  "hsl": {
    "h": 276,
    "s": 61.798,
    "l": 17.451
  },
  "oklch": {
    "l": 0.26136,
    "c": 0.0994,
    "h": 308.5
  },
  "luminance": 0.01547
}

Semantic roles & 50–950 ramp

primary
#321148
secondary
#538233
accent
#E54384
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #321148

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

Preview Lab → · Contrast checker → · Palette generator →

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