#321B63#321B63

#321B63 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.0% C 0.120 H 292.3°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#321B63
RGBrgb(50, 27, 99)
HSLhsl(259, 57%, 25%)
HSVhsv(259, 73%, 39%)
CMYKcmyk(49.5%, 72.7%, 0%, 61.2%)
CIE-LABlab(17.29, 29.84, -38.63)
CIE-LCHlch(17.29, 48.82, 307.69°)
OKLaboklab(30% 0.0454 -0.1106)
OKLCHoklch(30% 0.12 292.3)
XYZxyz(3.9588, 2.3627, 12.0494)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B63 #4C631B
analogous
#1B2863 #321B63 #561B63
triadic
#321B63 #63321B #1B6332
tetradic
#321B63 #631B28 #4C631B #1B6356
square
#321B63 #631B28 #4C631B #1B6356
split-complementary
#321B63 #63561B #28631B
monochromatic
#0C0718 #1A0E33 #321B63 #4A2893 #6335C3

Accessibility & contrast

On white

14.26
#321B63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#321B63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B63
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B63#FFFFFF#000000##FFFFFF
##321B631.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B65
Deuteranopia (green-blind)
#002962
Tritanopia (blue-blind)
#232D3C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321b63;
/* rgb */ color: rgb(50, 27, 99);
/* oklch */ color: oklch(30.0% 0.120 292.3);
Tailwind
colors: {
  custom: {
    50: '#6f5990',
    500: '#321b63',
    950: '#000000',
  },
}
SCSS
$custom: #321b63;
$custom-light: #6f5990;
$custom-dark: #000000;
JSON
{
  "hex": "#321b63",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 99
  },
  "hsl": {
    "h": 259.167,
    "s": 57.143,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30001,
    "c": 0.1196,
    "h": 292.3
  },
  "luminance": 0.02363
}

Semantic roles & 50–950 ramp

primary
#321B63
secondary
#7D9841
accent
#E047B0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #321B63

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

Preview Lab → · Contrast checker → · Palette generator →

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