#321B6F#321B6F

#321B6F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.135 H 288.5°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#321B6F
RGBrgb(50, 27, 111)
HSLhsl(256, 61%, 27%)
HSVhsv(256, 76%, 44%)
CMYKcmyk(55%, 75.7%, 0%, 56.5%)
CIE-LABlab(18.41, 33.59, -44.65)
CIE-LCHlch(18.41, 55.87, 306.95°)
OKLaboklab(31.15% 0.0429 -0.1283)
OKLCHoklch(31.15% 0.135 288.5)
XYZxyz(4.5757, 2.6095, 15.2984)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B6F #586F1B
analogous
#1B2E6F #321B6F #5C1B6F
triadic
#321B6F #6F321B #1B6F32
tetradic
#321B6F #6F1B2E #586F1B #1B6F5C
square
#321B6F #6F1B2E #586F1B #1B6F5C
split-complementary
#321B6F #6F5C1B #2E6F1B
monochromatic
#0B0619 #1C0F3E #321B6F #4827A0 #6036CE

Accessibility & contrast

On white

13.80
#321B6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#321B6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B6F
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B6F#FFFFFF#000000##FFFFFF
##321B6F1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#1B3143
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #321b6f;
/* rgb */ color: rgb(50, 27, 111);
/* oklch */ color: oklch(31.1% 0.135 288.5);
Tailwind
colors: {
  custom: {
    50: '#715a99',
    500: '#321b6f',
    950: '#000000',
  },
}
SCSS
$custom: #321b6f;
$custom-light: #715a99;
$custom-dark: #000000;
JSON
{
  "hex": "#321b6f",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 111
  },
  "hsl": {
    "h": 256.429,
    "s": 60.87,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31145,
    "c": 0.13529,
    "h": 288.5
  },
  "luminance": 0.0261
}

Semantic roles & 50–950 ramp

primary
#321B6F
secondary
#89A442
accent
#E444B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321B6F

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

Preview Lab → · Contrast checker → · Palette generator →

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