#321A3F#321A3F

#321A3F is a dark, moderate violet. Relative luminance 0.018; OKLCH L 26.9% C 0.072 H 312.5°. Best body text is #FFFFFF at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#321A3F
RGBrgb(50, 26, 63)
HSLhsl(279, 42%, 17%)
HSVhsv(279, 59%, 25%)
CMYKcmyk(20.6%, 58.7%, 0%, 75.3%)
CIE-LABlab(14.26, 19.85, -19.00)
CIE-LCHlch(14.26, 27.48, 316.26°)
OKLaboklab(26.92% 0.0485 -0.053)
OKLCHoklch(26.92% 0.072 312.5)
XYZxyz(2.5818, 1.7758, 4.9084)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A3F #273F1A
analogous
#201A3F #321A3F #3F1A3A
triadic
#321A3F #3F321A #1A3F32
tetradic
#321A3F #3F201A #273F1A #1A3A3F
square
#321A3F #3F201A #273F1A #1A3A3F
split-complementary
#321A3F #3A3F1A #1A3F20
monochromatic
#110916 #110916 #321A3F #542C6A #773E96

Accessibility & contrast

On white

15.50
#321A3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321A3F
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A3F#FFFFFF#000000##FFFFFF
##321A3F1.0015.501.3615.50
#FFFFFF15.501.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112340
Deuteranopia (green-blind)
#18253E
Tritanopia (blue-blind)
#312029
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #321a3f;
/* rgb */ color: rgb(50, 26, 63);
/* oklch */ color: oklch(26.9% 0.072 312.5);
Tailwind
colors: {
  custom: {
    50: '#6b5774',
    500: '#321a3f',
    950: '#000000',
  },
}
SCSS
$custom: #321a3f;
$custom-light: #6b5774;
$custom-dark: #000000;
JSON
{
  "hex": "#321a3f",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 63
  },
  "hsl": {
    "h": 278.919,
    "s": 41.573,
    "l": 17.451
  },
  "oklch": {
    "l": 0.26918,
    "c": 0.0719,
    "h": 312.5
  },
  "luminance": 0.01776
}

Semantic roles & 50–950 ramp

primary
#321A3F
secondary
#537540
accent
#D15682
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #321A3F

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

Preview Lab → · Contrast checker → · Palette generator →

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