#321B6E#321B6E

#321B6E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.134 H 288.8°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#321B6E
RGBrgb(50, 27, 110)
HSLhsl(257, 61%, 27%)
HSVhsv(257, 75%, 43%)
CMYKcmyk(54.5%, 75.5%, 0%, 56.9%)
CIE-LABlab(18.31, 33.27, -44.16)
CIE-LCHlch(18.31, 55.29, 307.00°)
OKLaboklab(31.05% 0.0431 -0.1269)
OKLCHoklch(31.05% 0.134 288.8)
XYZxyz(4.5210, 2.5876, 15.0101)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B6E #576E1B
analogous
#1B2D6E #321B6E #5C1B6E
triadic
#321B6E #6E321B #1B6E32
tetradic
#321B6E #6E1B2D #576E1B #1B6E5C
square
#321B6E #6E1B2D #576E1B #1B6E5C
split-complementary
#321B6E #6E5C1B #2D6E1B
monochromatic
#0B0619 #1C0F3D #321B6E #48279F #6036CE

Accessibility & contrast

On white

13.84
#321B6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321B6E
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B6E#FFFFFF#000000##FFFFFF
##321B6E1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E70
Deuteranopia (green-blind)
#002B6C
Tritanopia (blue-blind)
#1C3142
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #321b6e;
/* rgb */ color: rgb(50, 27, 110);
/* oklch */ color: oklch(31.0% 0.134 288.8);
Tailwind
colors: {
  custom: {
    50: '#715a98',
    500: '#321b6e',
    950: '#000000',
  },
}
SCSS
$custom: #321b6e;
$custom-light: #715a98;
$custom-dark: #000000;
JSON
{
  "hex": "#321b6e",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 110
  },
  "hsl": {
    "h": 256.627,
    "s": 60.584,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31047,
    "c": 0.13399,
    "h": 288.8
  },
  "luminance": 0.02588
}

Semantic roles & 50–950 ramp

primary
#321B6E
secondary
#88A342
accent
#E444B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321B6E

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

Preview Lab → · Contrast checker → · Palette generator →

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