#321A5F#321A5F

#321A5F is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.5% C 0.116 H 294.1°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#321A5F
RGBrgb(50, 26, 95)
HSLhsl(261, 57%, 24%)
HSVhsv(261, 73%, 37%)
CMYKcmyk(47.4%, 72.6%, 0%, 62.7%)
CIE-LABlab(16.71, 29.20, -36.91)
CIE-LCHlch(16.71, 47.07, 308.35°)
OKLaboklab(29.48% 0.0472 -0.1056)
OKLCHoklch(29.48% 0.116 294.1)
XYZxyz(3.7498, 2.2430, 11.0596)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A5F #475F1A
analogous
#1A245F #321A5F #541A5F
triadic
#321A5F #5F321A #1A5F32
tetradic
#321A5F #5F1A24 #475F1A #1A5F54
square
#321A5F #5F1A24 #475F1A #1A5F54
split-complementary
#321A5F #5F541A #245F1A
monochromatic
#0D0718 #190D2F #321A5F #4B278F #6534BF

Accessibility & contrast

On white

14.50
#321A5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#321A5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A5F
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A5F#FFFFFF#000000##FFFFFF
##321A5F1.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#00285E
Tritanopia (blue-blind)
#252B3A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321a5f;
/* rgb */ color: rgb(50, 26, 95);
/* oklch */ color: oklch(29.5% 0.116 294.1);
Tailwind
colors: {
  custom: {
    50: '#6f588d',
    500: '#321a5f',
    950: '#000000',
  },
}
SCSS
$custom: #321a5f;
$custom-light: #6f588d;
$custom-dark: #000000;
JSON
{
  "hex": "#321a5f",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 95
  },
  "hsl": {
    "h": 260.87,
    "s": 57.025,
    "l": 23.725
  },
  "oklch": {
    "l": 0.2948,
    "c": 0.11568,
    "h": 294.1
  },
  "luminance": 0.02243
}

Semantic roles & 50–950 ramp

primary
#321A5F
secondary
#779540
accent
#E048AB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #321A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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