#321B3F#321B3F

#321B3F is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.1% C 0.070 H 312.1°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#321B3F
RGBrgb(50, 27, 63)
HSLhsl(278, 40%, 18%)
HSVhsv(278, 57%, 25%)
CMYKcmyk(20.6%, 57.1%, 0%, 75.3%)
CIE-LABlab(14.52, 19.20, -18.60)
CIE-LCHlch(14.52, 26.73, 315.91°)
OKLaboklab(27.11% 0.0468 -0.0519)
OKLCHoklch(27.11% 0.07 312.1)
XYZxyz(2.6044, 1.8209, 4.9159)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B3F #283F1B
analogous
#201B3F #321B3F #3F1B3A
triadic
#321B3F #3F321B #1B3F32
tetradic
#321B3F #3F201B #283F1B #1B3A3F
square
#321B3F #3F201B #283F1B #1B3A3F
split-complementary
#321B3F #3A3F1B #1B3F20
monochromatic
#110915 #110915 #321B3F #542D6A #764095

Accessibility & contrast

On white

15.39
#321B3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#321B3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B3F
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B3F#FFFFFF#000000##FFFFFF
##321B3F1.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122340
Deuteranopia (green-blind)
#19253E
Tritanopia (blue-blind)
#31212A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #321b3f;
/* rgb */ color: rgb(50, 27, 63);
/* oklch */ color: oklch(27.1% 0.070 312.1);
Tailwind
colors: {
  custom: {
    50: '#6b5874',
    500: '#321b3f',
    950: '#000000',
  },
}
SCSS
$custom: #321b3f;
$custom-light: #6b5874;
$custom-dark: #000000;
JSON
{
  "hex": "#321b3f",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 63
  },
  "hsl": {
    "h": 278.333,
    "s": 40,
    "l": 17.647
  },
  "oklch": {
    "l": 0.27106,
    "c": 0.0699,
    "h": 312.1
  },
  "luminance": 0.01821
}

Semantic roles & 50–950 ramp

primary
#321B3F
secondary
#547441
accent
#D05883
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #321B3F

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

Preview Lab → · Contrast checker → · Palette generator →

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