#321B52#321B52

#321B52 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.5% C 0.097 H 299.5°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#321B52
RGBrgb(50, 27, 82)
HSLhsl(265, 50%, 21%)
HSVhsv(265, 67%, 32%)
CMYKcmyk(39%, 67.1%, 0%, 67.8%)
CIE-LABlab(15.86, 24.64, -29.57)
CIE-LCHlch(15.86, 38.49, 309.80°)
OKLaboklab(28.52% 0.0475 -0.084)
OKLCHoklch(28.52% 0.097 299.5)
XYZxyz(3.2299, 2.0711, 8.2106)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B52 #3B521B
analogous
#1B2052 #321B52 #4E1B52
triadic
#321B52 #52321B #1B5232
tetradic
#321B52 #521B20 #3B521B #1B524E
square
#321B52 #521B20 #3B521B #1B524E
split-complementary
#321B52 #524E1B #20521B
monochromatic
#0E0817 #160C24 #321B52 #4E2A80 #6A39AE

Accessibility & contrast

On white

14.85
#321B52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#321B52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B52
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B52#FFFFFF#000000##FFFFFF
##321B521.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002754
Deuteranopia (green-blind)
#062751
Tritanopia (blue-blind)
#2B2733
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #321b52;
/* rgb */ color: rgb(50, 27, 82);
/* oklch */ color: oklch(28.5% 0.097 299.5);
Tailwind
colors: {
  custom: {
    50: '#6d5883',
    500: '#321b52',
    950: '#000000',
  },
}
SCSS
$custom: #321b52;
$custom-light: #6d5883;
$custom-dark: #000000;
JSON
{
  "hex": "#321b52",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 82
  },
  "hsl": {
    "h": 265.091,
    "s": 50.459,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28519,
    "c": 0.0965,
    "h": 299.5
  },
  "luminance": 0.02071
}

Semantic roles & 50–950 ramp

primary
#321B52
secondary
#6A8841
accent
#DA4E9F
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #321B52

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

Preview Lab → · Contrast checker → · Palette generator →

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