#321A4F#321A4F

#321A4F is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.094 H 301.5°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#321A4F
RGBrgb(50, 26, 79)
HSLhsl(267, 50%, 21%)
HSVhsv(267, 67%, 31%)
CMYKcmyk(36.7%, 67.1%, 0%, 69%)
CIE-LABlab(15.39, 24.38, -28.28)
CIE-LCHlch(15.39, 37.34, 310.76°)
OKLaboklab(28.11% 0.0491 -0.0802)
OKLCHoklch(28.11% 0.094 301.5)
XYZxyz(3.0957, 1.9814, 7.6150)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A4F #374F1A
analogous
#1A1C4F #321A4F #4C1A4F
triadic
#321A4F #4F321A #1A4F32
tetradic
#321A4F #4F1A1C #374F1A #1A4F4C
square
#321A4F #4F1A1C #374F1A #1A4F4C
split-complementary
#321A4F #4F4C1A #1C4F1A
monochromatic
#0F0817 #150B21 #321A4F #4F297D #6C38AB

Accessibility & contrast

On white

15.04
#321A4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321A4F
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A4F#FFFFFF#000000##FFFFFF
##321A4F1.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002651
Deuteranopia (green-blind)
#09264E
Tritanopia (blue-blind)
#2C2531
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #321a4f;
/* rgb */ color: rgb(50, 26, 79);
/* oklch */ color: oklch(28.1% 0.094 301.5);
Tailwind
colors: {
  custom: {
    50: '#6c5881',
    500: '#321a4f',
    950: '#000000',
  },
}
SCSS
$custom: #321a4f;
$custom-light: #6c5881;
$custom-dark: #000000;
JSON
{
  "hex": "#321a4f",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 79
  },
  "hsl": {
    "h": 267.17,
    "s": 50.476,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28105,
    "c": 0.09402,
    "h": 301.5
  },
  "luminance": 0.01981
}

Semantic roles & 50–950 ramp

primary
#321A4F
secondary
#668540
accent
#DA4E9B
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #321A4F

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

Preview Lab → · Contrast checker → · Palette generator →

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