#321B64#321B64

#321B64 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.1% C 0.121 H 292.0°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#321B64
RGBrgb(50, 27, 100)
HSLhsl(259, 57%, 25%)
HSVhsv(259, 73%, 39%)
CMYKcmyk(50%, 73%, 0%, 60.8%)
CIE-LABlab(17.38, 30.16, -39.14)
CIE-LCHlch(17.38, 49.41, 307.61°)
OKLaboklab(30.09% 0.0452 -0.1121)
OKLCHoklch(30.09% 0.121 292)
XYZxyz(4.0069, 2.3819, 12.3028)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B64 #4D641B
analogous
#1B2964 #321B64 #561B64
triadic
#321B64 #64321B #1B6432
tetradic
#321B64 #641B29 #4D641B #1B6456
square
#321B64 #641B29 #4D641B #1B6456
split-complementary
#321B64 #64561B #29641B
monochromatic
#0C0718 #1A0E34 #321B64 #4A2894 #6235C4

Accessibility & contrast

On white

14.22
#321B64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#321B64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B64
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B64#FFFFFF#000000##FFFFFF
##321B641.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C66
Deuteranopia (green-blind)
#002963
Tritanopia (blue-blind)
#232D3D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #321b64;
/* rgb */ color: rgb(50, 27, 100);
/* oklch */ color: oklch(30.1% 0.121 292.0);
Tailwind
colors: {
  custom: {
    50: '#6f5991',
    500: '#321b64',
    950: '#000000',
  },
}
SCSS
$custom: #321b64;
$custom-light: #6f5991;
$custom-dark: #000000;
JSON
{
  "hex": "#321b64",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 100
  },
  "hsl": {
    "h": 258.904,
    "s": 57.48,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30093,
    "c": 0.12093,
    "h": 292
  },
  "luminance": 0.02382
}

Semantic roles & 50–950 ramp

primary
#321B64
secondary
#7E9941
accent
#E147B0
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #321B64

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

Preview Lab → · Contrast checker → · Palette generator →

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