#321D3F#321D3F

#321D3F is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.5% C 0.066 H 311.2°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#321D3F
RGBrgb(50, 29, 63)
HSLhsl(277, 37%, 18%)
HSVhsv(277, 54%, 25%)
CMYKcmyk(20.6%, 54%, 0%, 75.3%)
CIE-LABlab(15.04, 17.86, -17.78)
CIE-LCHlch(15.04, 25.20, 315.13°)
OKLaboklab(27.49% 0.0434 -0.0495)
OKLCHoklch(27.49% 0.066 311.2)
XYZxyz(2.6518, 1.9158, 4.9317)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D3F #2A3F1D
analogous
#211D3F #321D3F #3F1D3B
triadic
#321D3F #3F321D #1D3F32
tetradic
#321D3F #3F211D #2A3F1D #1D3B3F
square
#321D3F #3F211D #2A3F1D #1D3B3F
split-complementary
#321D3F #3B3F1D #1D3F21
monochromatic
#110A15 #110A15 #321D3F #533069 #754493

Accessibility & contrast

On white

15.18
#321D3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#321D3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D3F
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D3F#FFFFFF#000000##FFFFFF
##321D3F1.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152540
Deuteranopia (green-blind)
#1B263E
Tritanopia (blue-blind)
#31222B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #321d3f;
/* rgb */ color: rgb(50, 29, 63);
/* oklch */ color: oklch(27.5% 0.066 311.2);
Tailwind
colors: {
  custom: {
    50: '#6b5974',
    500: '#321d3f',
    950: '#000000',
  },
}
SCSS
$custom: #321d3f;
$custom-light: #6b5974;
$custom-dark: #000000;
JSON
{
  "hex": "#321d3f",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 63
  },
  "hsl": {
    "h": 277.059,
    "s": 36.957,
    "l": 18.039
  },
  "oklch": {
    "l": 0.27493,
    "c": 0.06585,
    "h": 311.2
  },
  "luminance": 0.01916
}

Semantic roles & 50–950 ramp

primary
#321D3F
secondary
#567444
accent
#CD5B86
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #321D3F

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

Preview Lab → · Contrast checker → · Palette generator →

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