#321D40#321D40

#321D40 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.6% C 0.067 H 310.4°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#321D40
RGBrgb(50, 29, 64)
HSLhsl(276, 38%, 18%)
HSVhsv(276, 55%, 25%)
CMYKcmyk(21.9%, 54.7%, 0%, 74.9%)
CIE-LABlab(15.10, 18.13, -18.38)
CIE-LCHlch(15.10, 25.82, 314.61°)
OKLaboklab(27.56% 0.0436 -0.0513)
OKLCHoklch(27.56% 0.067 310.4)
XYZxyz(2.6800, 1.9271, 5.0803)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D40 #2B401D
analogous
#201D40 #321D40 #401D3C
triadic
#321D40 #40321D #1D4032
tetradic
#321D40 #40201D #2B401D #1D3C40
square
#321D40 #40201D #2B401D #1D3C40
split-complementary
#321D40 #3C401D #1D4020
monochromatic
#100A15 #110A16 #321D40 #53306A #744394

Accessibility & contrast

On white

15.16
#321D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#321D40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D40
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D40#FFFFFF#000000##FFFFFF
##321D401.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152541
Deuteranopia (green-blind)
#1A263F
Tritanopia (blue-blind)
#30232B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #321d40;
/* rgb */ color: rgb(50, 29, 64);
/* oklch */ color: oklch(27.6% 0.067 310.4);
Tailwind
colors: {
  custom: {
    50: '#6b5975',
    500: '#321d40',
    950: '#000000',
  },
}
SCSS
$custom: #321d40;
$custom-light: #6b5975;
$custom-dark: #000000;
JSON
{
  "hex": "#321d40",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 64
  },
  "hsl": {
    "h": 276,
    "s": 37.634,
    "l": 18.235
  },
  "oklch": {
    "l": 0.27558,
    "c": 0.06728,
    "h": 310.4
  },
  "luminance": 0.01927
}

Semantic roles & 50–950 ramp

primary
#321D40
secondary
#587544
accent
#CE5A88
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #321D40

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

Preview Lab → · Contrast checker → · Palette generator →

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