#321B6D#321B6D

#321B6D is a dark, vivid violet. Relative luminance 0.026; OKLCH L 30.9% C 0.133 H 289.1°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#321B6D
RGBrgb(50, 27, 109)
HSLhsl(257, 60%, 27%)
HSVhsv(257, 75%, 43%)
CMYKcmyk(54.1%, 75.2%, 0%, 57.3%)
CIE-LABlab(18.21, 32.96, -43.67)
CIE-LCHlch(18.21, 54.71, 307.05°)
OKLaboklab(30.95% 0.0434 -0.1254)
OKLCHoklch(30.95% 0.133 289.1)
XYZxyz(4.4668, 2.5659, 14.7249)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B6D #566D1B
analogous
#1B2D6D #321B6D #5B1B6D
triadic
#321B6D #6D321B #1B6D32
tetradic
#321B6D #6D1B2D #566D1B #1B6D5B
square
#321B6D #6D1B2D #566D1B #1B6D5B
split-complementary
#321B6D #6D5B1B #2D6D1B
monochromatic
#0B0619 #1C0F3C #321B6D #49279E #6035CD

Accessibility & contrast

On white

13.88
#321B6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#321B6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B6D
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B6D#FFFFFF#000000##FFFFFF
##321B6D1.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6F
Deuteranopia (green-blind)
#002A6B
Tritanopia (blue-blind)
#1C3142
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #321b6d;
/* rgb */ color: rgb(50, 27, 109);
/* oklch */ color: oklch(30.9% 0.133 289.1);
Tailwind
colors: {
  custom: {
    50: '#715a98',
    500: '#321b6d',
    950: '#000000',
  },
}
SCSS
$custom: #321b6d;
$custom-light: #715a98;
$custom-dark: #000000;
JSON
{
  "hex": "#321b6d",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 109
  },
  "hsl": {
    "h": 256.829,
    "s": 60.294,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30949,
    "c": 0.13271,
    "h": 289.1
  },
  "luminance": 0.02566
}

Semantic roles & 50–950 ramp

primary
#321B6D
secondary
#87A242
accent
#E344B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321B6D

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

Preview Lab → · Contrast checker → · Palette generator →

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