#321B48#321B48

#321B48 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.083 H 305.2°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#321B48
RGBrgb(50, 27, 72)
HSLhsl(271, 45%, 19%)
HSVhsv(271, 63%, 28%)
CMYKcmyk(30.6%, 62.5%, 0%, 71.8%)
CIE-LABlab(15.12, 21.71, -23.92)
CIE-LCHlch(15.12, 32.30, 312.23°)
OKLaboklab(27.74% 0.0476 -0.0674)
OKLCHoklch(27.74% 0.083 305.2)
XYZxyz(2.8768, 1.9299, 6.3506)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B48 #31481B
analogous
#1C1B48 #321B48 #481B48
triadic
#321B48 #48321B #1B4832
tetradic
#321B48 #481C1B #31481B #1B4848
square
#321B48 #481C1B #31481B #1B4848
split-complementary
#321B48 #48481B #1B481C
monochromatic
#0F0816 #130A1B #321B48 #512C75 #703CA1

Accessibility & contrast

On white

15.15
#321B48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#321B48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B48
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B48#FFFFFF#000000##FFFFFF
##321B481.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2549
Deuteranopia (green-blind)
#132647
Tritanopia (blue-blind)
#2E242E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #321b48;
/* rgb */ color: rgb(50, 27, 72);
/* oklch */ color: oklch(27.7% 0.083 305.2);
Tailwind
colors: {
  custom: {
    50: '#6c587b',
    500: '#321b48',
    950: '#000000',
  },
}
SCSS
$custom: #321b48;
$custom-light: #6c587b;
$custom-dark: #000000;
JSON
{
  "hex": "#321b48",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 72
  },
  "hsl": {
    "h": 270.667,
    "s": 45.455,
    "l": 19.412
  },
  "oklch": {
    "l": 0.2774,
    "c": 0.08253,
    "h": 305.2
  },
  "luminance": 0.0193
}

Semantic roles & 50–950 ramp

primary
#321B48
secondary
#5F7E41
accent
#D55392
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #321B48

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

Preview Lab → · Contrast checker → · Palette generator →

#321B48 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva