#321B54#321B54

#321B54 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.099 H 298.5°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#321B54
RGBrgb(50, 27, 84)
HSLhsl(264, 51%, 22%)
HSVhsv(264, 68%, 33%)
CMYKcmyk(40.5%, 67.9%, 0%, 67.1%)
CIE-LABlab(16.01, 25.24, -30.67)
CIE-LCHlch(16.01, 39.72, 309.45°)
OKLaboklab(28.68% 0.0474 -0.0872)
OKLCHoklch(28.68% 0.099 298.5)
XYZxyz(3.3072, 2.1020, 8.6173)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B54 #3D541B
analogous
#1B2154 #321B54 #4F1B54
triadic
#321B54 #54321B #1B5432
tetradic
#321B54 #541B21 #3D541B #1B544F
square
#321B54 #541B21 #3D541B #1B544F
split-complementary
#321B54 #544F1B #21541B
monochromatic
#0E0717 #160C26 #321B54 #4E2A82 #6939B1

Accessibility & contrast

On white

14.78
#321B54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#321B54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B54
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B54#FFFFFF#000000##FFFFFF
##321B541.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002856
Deuteranopia (green-blind)
#032753
Tritanopia (blue-blind)
#2A2834
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #321b54;
/* rgb */ color: rgb(50, 27, 84);
/* oklch */ color: oklch(28.7% 0.099 298.5);
Tailwind
colors: {
  custom: {
    50: '#6d5985',
    500: '#321b54',
    950: '#000000',
  },
}
SCSS
$custom: #321b54;
$custom-light: #6d5985;
$custom-dark: #000000;
JSON
{
  "hex": "#321b54",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 84
  },
  "hsl": {
    "h": 264.211,
    "s": 51.351,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28684,
    "c": 0.09927,
    "h": 298.5
  },
  "luminance": 0.02102
}

Semantic roles & 50–950 ramp

primary
#321B54
secondary
#6C8A41
accent
#DB4DA2
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321B54

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

Preview Lab → · Contrast checker → · Palette generator →

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