#321F3F#321F3F

#321F3F is a dark, moderate violet. Relative luminance 0.020; OKLCH L 27.9% C 0.062 H 310.3°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#321F3F
RGBrgb(50, 31, 63)
HSLhsl(276, 34%, 18%)
HSVhsv(276, 51%, 25%)
CMYKcmyk(20.6%, 50.8%, 0%, 75.3%)
CIE-LABlab(15.58, 16.50, -16.93)
CIE-LCHlch(15.58, 23.64, 314.26°)
OKLaboklab(27.89% 0.0399 -0.0471)
OKLCHoklch(27.89% 0.062 310.3)
XYZxyz(2.7024, 2.0170, 4.9486)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F3F #2C3F1F
analogous
#221F3F #321F3F #3F1F3C
triadic
#321F3F #3F321F #1F3F32
tetradic
#321F3F #3F221F #2C3F1F #1F3C3F
square
#321F3F #3F221F #2C3F1F #1F3C3F
split-complementary
#321F3F #3C3F1F #1F3F22
monochromatic
#100A15 #110B16 #321F3F #533368 #734791

Accessibility & contrast

On white

14.96
#321F3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321F3F
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F3F#FFFFFF#000000##FFFFFF
##321F3F1.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182640
Deuteranopia (green-blind)
#1D273E
Tritanopia (blue-blind)
#30242C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #321f3f;
/* rgb */ color: rgb(50, 31, 63);
/* oklch */ color: oklch(27.9% 0.062 310.3);
Tailwind
colors: {
  custom: {
    50: '#6b5b74',
    500: '#321f3f',
    950: '#000000',
  },
}
SCSS
$custom: #321f3f;
$custom-light: #6b5b74;
$custom-dark: #000000;
JSON
{
  "hex": "#321f3f",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 63
  },
  "hsl": {
    "h": 275.625,
    "s": 34.043,
    "l": 18.431
  },
  "oklch": {
    "l": 0.27895,
    "c": 0.06172,
    "h": 310.3
  },
  "luminance": 0.02017
}

Semantic roles & 50–950 ramp

primary
#321F3F
secondary
#597347
accent
#CA5E8A
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060408
muted
#7A797B

Preview Lab

Preview with #321F3F

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

Preview Lab → · Contrast checker → · Palette generator →

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