#321F5F#321F5F

#321F5F is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.3% C 0.108 H 292.4°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#321F5F
RGBrgb(50, 31, 95)
HSLhsl(258, 51%, 25%)
HSVhsv(258, 67%, 37%)
CMYKcmyk(47.4%, 67.4%, 0%, 62.7%)
CIE-LABlab(17.85, 26.13, -35.07)
CIE-LCHlch(17.85, 43.73, 306.68°)
OKLaboklab(30.3% 0.0413 -0.1002)
OKLCHoklch(30.3% 0.108 292.4)
XYZxyz(3.8704, 2.4842, 11.0998)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F5F #4C5F1F
analogous
#1F2C5F #321F5F #521F5F
triadic
#321F5F #5F321F #1F5F32
tetradic
#321F5F #5F1F2C #4C5F1F #1F5F52
square
#321F5F #5F1F2C #4C5F1F #1F5F52
split-complementary
#321F5F #5F521F #2C5F1F
monochromatic
#0C0817 #1A1031 #321F5F #4A2E8D #633DBB

Accessibility & contrast

On white

14.03
#321F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#321F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F5F
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F5F#FFFFFF#000000##FFFFFF
##321F5F1.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#002A5E
Tritanopia (blue-blind)
#252E3B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #321f5f;
/* rgb */ color: rgb(50, 31, 95);
/* oklch */ color: oklch(30.3% 0.108 292.4);
Tailwind
colors: {
  custom: {
    50: '#6e5c8d',
    500: '#321f5f',
    950: '#000000',
  },
}
SCSS
$custom: #321f5f;
$custom-light: #6e5c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#321f5f",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 95
  },
  "hsl": {
    "h": 257.813,
    "s": 50.794,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30297,
    "c": 0.10834,
    "h": 292.4
  },
  "luminance": 0.02484
}

Semantic roles & 50–950 ramp

primary
#321F5F
secondary
#7D9446
accent
#DA4EB0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #321F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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