#321A5B#321A5B

#321A5B is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.1% C 0.110 H 295.7°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#321A5B
RGBrgb(50, 26, 91)
HSLhsl(262, 56%, 23%)
HSVhsv(262, 71%, 36%)
CMYKcmyk(45.1%, 71.4%, 0%, 64.3%)
CIE-LABlab(16.37, 27.98, -34.81)
CIE-LCHlch(16.37, 44.66, 308.79°)
OKLaboklab(29.12% 0.0479 -0.0994)
OKLCHoklch(29.12% 0.11 295.7)
XYZxyz(3.5726, 2.1722, 10.1265)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A5B #435B1A
analogous
#1A225B #321A5B #521A5B
triadic
#321A5B #5B321A #1A5B32
tetradic
#321A5B #5B1A22 #435B1A #1A5B52
square
#321A5B #5B1A22 #435B1A #1A5B52
split-complementary
#321A5B #5B521A #225B1A
monochromatic
#0D0718 #180C2B #321A5B #4C288B #6635BA

Accessibility & contrast

On white

14.64
#321A5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#321A5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A5B
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A5B#FFFFFF#000000##FFFFFF
##321A5B1.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#00285A
Tritanopia (blue-blind)
#272938
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321a5b;
/* rgb */ color: rgb(50, 26, 91);
/* oklch */ color: oklch(29.1% 0.110 295.7);
Tailwind
colors: {
  custom: {
    50: '#6e588a',
    500: '#321a5b',
    950: '#000000',
  },
}
SCSS
$custom: #321a5b;
$custom-light: #6e588a;
$custom-dark: #000000;
JSON
{
  "hex": "#321a5b",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 91
  },
  "hsl": {
    "h": 262.154,
    "s": 55.556,
    "l": 22.941
  },
  "oklch": {
    "l": 0.29121,
    "c": 0.11034,
    "h": 295.7
  },
  "luminance": 0.02172
}

Semantic roles & 50–950 ramp

primary
#321A5B
secondary
#739140
accent
#DF49A8
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #321A5B

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

Preview Lab → · Contrast checker → · Palette generator →

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