#321B4F#321B4F

#321B4F is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.092 H 301.1°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#321B4F
RGBrgb(50, 27, 79)
HSLhsl(267, 49%, 21%)
HSVhsv(267, 66%, 31%)
CMYKcmyk(36.7%, 65.8%, 0%, 69%)
CIE-LABlab(15.63, 23.75, -27.90)
CIE-LCHlch(15.63, 36.64, 310.40°)
OKLaboklab(28.28% 0.0476 -0.0791)
OKLCHoklch(28.28% 0.092 301.1)
XYZxyz(3.1183, 2.0265, 7.6225)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B4F #384F1B
analogous
#1B1E4F #321B4F #4C1B4F
triadic
#321B4F #4F321B #1B4F32
tetradic
#321B4F #4F1B1E #384F1B #1B4F4C
square
#321B4F #4F1B1E #384F1B #1B4F4C
split-complementary
#321B4F #4F4C1B #1E4F1B
monochromatic
#0E0817 #150B21 #321B4F #4F2B7D #6C3AAA

Accessibility & contrast

On white

14.94
#321B4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#321B4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B4F
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B4F#FFFFFF#000000##FFFFFF
##321B4F1.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012751
Deuteranopia (green-blind)
#0B274E
Tritanopia (blue-blind)
#2C2632
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #321b4f;
/* rgb */ color: rgb(50, 27, 79);
/* oklch */ color: oklch(28.3% 0.092 301.1);
Tailwind
colors: {
  custom: {
    50: '#6c5881',
    500: '#321b4f',
    950: '#000000',
  },
}
SCSS
$custom: #321b4f;
$custom-light: #6c5881;
$custom-dark: #000000;
JSON
{
  "hex": "#321b4f",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 79
  },
  "hsl": {
    "h": 266.538,
    "s": 49.057,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28278,
    "c": 0.09234,
    "h": 301.1
  },
  "luminance": 0.02026
}

Semantic roles & 50–950 ramp

primary
#321B4F
secondary
#678541
accent
#D94F9C
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #321B4F

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

Preview Lab → · Contrast checker → · Palette generator →

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