#321B56#321B56

#321B56 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.9% C 0.102 H 297.6°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#321B56
RGBrgb(50, 27, 86)
HSLhsl(263, 52%, 22%)
HSVhsv(263, 69%, 34%)
CMYKcmyk(41.9%, 68.6%, 0%, 66.3%)
CIE-LABlab(16.17, 25.85, -31.76)
CIE-LCHlch(16.17, 40.95, 309.14°)
OKLaboklab(28.85% 0.0472 -0.0904)
OKLCHoklch(28.85% 0.102 297.6)
XYZxyz(3.3866, 2.1338, 9.0357)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B56 #3F561B
analogous
#1B2256 #321B56 #501B56
triadic
#321B56 #56321B #1B5632
tetradic
#321B56 #561B22 #3F561B #1B5650
square
#321B56 #561B22 #3F561B #1B5650
split-complementary
#321B56 #56501B #22561B
monochromatic
#0E0717 #170C27 #321B56 #4D2A85 #6838B3

Accessibility & contrast

On white

14.72
#321B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#321B56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B56
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B56#FFFFFF#000000##FFFFFF
##321B561.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002858
Deuteranopia (green-blind)
#002755
Tritanopia (blue-blind)
#292835
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #321b56;
/* rgb */ color: rgb(50, 27, 86);
/* oklch */ color: oklch(28.9% 0.102 297.6);
Tailwind
colors: {
  custom: {
    50: '#6d5986',
    500: '#321b56',
    950: '#000000',
  },
}
SCSS
$custom: #321b56;
$custom-light: #6d5986;
$custom-dark: #000000;
JSON
{
  "hex": "#321b56",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 86
  },
  "hsl": {
    "h": 263.39,
    "s": 52.212,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28851,
    "c": 0.10203,
    "h": 297.6
  },
  "luminance": 0.02134
}

Semantic roles & 50–950 ramp

primary
#321B56
secondary
#6F8C41
accent
#DC4CA4
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321B56

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

Preview Lab → · Contrast checker → · Palette generator →

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