#321B4E#321B4E

#321B4E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.091 H 301.6°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#321B4E
RGBrgb(50, 27, 78)
HSLhsl(267, 49%, 21%)
HSVhsv(267, 65%, 31%)
CMYKcmyk(35.9%, 65.4%, 0%, 69.4%)
CIE-LABlab(15.55, 23.45, -27.34)
CIE-LCHlch(15.55, 36.02, 310.62°)
OKLaboklab(28.2% 0.0477 -0.0774)
OKLCHoklch(28.2% 0.091 301.6)
XYZxyz(3.0821, 2.0120, 7.4322)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B4E #374E1B
analogous
#1B1D4E #321B4E #4B1B4E
triadic
#321B4E #4E321B #1B4E32
tetradic
#321B4E #4E1B1D #374E1B #1B4E4B
square
#321B4E #4E1B1D #374E1B #1B4E4B
split-complementary
#321B4E #4E4B1B #1D4E1B
monochromatic
#0F0817 #150B21 #321B4E #4F2B7B #6C3AA9

Accessibility & contrast

On white

14.97
#321B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#321B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B4E
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B4E#FFFFFF#000000##FFFFFF
##321B4E1.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032650
Deuteranopia (green-blind)
#0C274D
Tritanopia (blue-blind)
#2C2631
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #321b4e;
/* rgb */ color: rgb(50, 27, 78);
/* oklch */ color: oklch(28.2% 0.091 301.6);
Tailwind
colors: {
  custom: {
    50: '#6c5880',
    500: '#321b4e',
    950: '#000000',
  },
}
SCSS
$custom: #321b4e;
$custom-light: #6c5880;
$custom-dark: #000000;
JSON
{
  "hex": "#321b4e",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 267.059,
    "s": 48.571,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28198,
    "c": 0.09094,
    "h": 301.6
  },
  "luminance": 0.02012
}

Semantic roles & 50–950 ramp

primary
#321B4E
secondary
#668441
accent
#D8509B
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #321B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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