#321B6A#321B6A

#321B6A is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.129 H 290.0°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#321B6A
RGBrgb(50, 27, 106)
HSLhsl(257, 59%, 26%)
HSVhsv(257, 75%, 42%)
CMYKcmyk(52.8%, 74.5%, 0%, 58.4%)
CIE-LABlab(17.93, 32.03, -42.18)
CIE-LCHlch(17.93, 52.96, 307.21°)
OKLaboklab(30.66% 0.044 -0.1211)
OKLCHoklch(30.66% 0.129 290)
XYZxyz(4.3081, 2.5024, 13.8889)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B6A #536A1B
analogous
#1B2B6A #321B6A #591B6A
triadic
#321B6A #6A321B #1B6A32
tetradic
#321B6A #6A1B2B #536A1B #1B6A59
square
#321B6A #6A1B2B #536A1B #1B6A59
split-complementary
#321B6A #6A591B #2B6A1B
monochromatic
#0C0618 #1B0F39 #321B6A #49279B #6034CB

Accessibility & contrast

On white

13.99
#321B6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#321B6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B6A
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B6A#FFFFFF#000000##FFFFFF
##321B6A1.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6C
Deuteranopia (green-blind)
#002A68
Tritanopia (blue-blind)
#1F2F40
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #321b6a;
/* rgb */ color: rgb(50, 27, 106);
/* oklch */ color: oklch(30.7% 0.129 290.0);
Tailwind
colors: {
  custom: {
    50: '#705995',
    500: '#321b6a',
    950: '#000000',
  },
}
SCSS
$custom: #321b6a;
$custom-light: #705995;
$custom-dark: #000000;
JSON
{
  "hex": "#321b6a",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 106
  },
  "hsl": {
    "h": 257.468,
    "s": 59.398,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30659,
    "c": 0.12881,
    "h": 290
  },
  "luminance": 0.02503
}

Semantic roles & 50–950 ramp

primary
#321B6A
secondary
#849F42
accent
#E345B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #321B6A

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

Preview Lab → · Contrast checker → · Palette generator →

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