#321F5D#321F5D

#321F5D is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.1% C 0.106 H 293.1°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#321F5D
RGBrgb(50, 31, 93)
HSLhsl(258, 50%, 24%)
HSVhsv(258, 67%, 36%)
CMYKcmyk(46.2%, 66.7%, 0%, 63.5%)
CIE-LABlab(17.68, 25.49, -34.01)
CIE-LCHlch(17.68, 42.50, 306.85°)
OKLaboklab(30.13% 0.0414 -0.0971)
OKLCHoklch(30.13% 0.106 293.1)
XYZxyz(3.7806, 2.4483, 10.6272)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321F5D #4A5D1F
analogous
#1F2B5D #321F5D #511F5D
triadic
#321F5D #5D321F #1F5D32
tetradic
#321F5D #5D1F2B #4A5D1F #1F5D51
square
#321F5D #5D1F2B #4A5D1F #1F5D51
split-complementary
#321F5D #5D511F #2B5D1F
monochromatic
#0C0817 #19102F #321F5D #4B2E8B #633EB9

Accessibility & contrast

On white

14.10
#321F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#321F5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321F5D
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321F5D#FFFFFF#000000##FFFFFF
##321F5D1.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5F
Deuteranopia (green-blind)
#002A5C
Tritanopia (blue-blind)
#262D3A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #321f5d;
/* rgb */ color: rgb(50, 31, 93);
/* oklch */ color: oklch(30.1% 0.106 293.1);
Tailwind
colors: {
  custom: {
    50: '#6e5b8b',
    500: '#321f5d',
    950: '#000000',
  },
}
SCSS
$custom: #321f5d;
$custom-light: #6e5b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#321f5d",
  "rgb": {
    "r": 50,
    "g": 31,
    "b": 93
  },
  "hsl": {
    "h": 258.387,
    "s": 50,
    "l": 24.314
  },
  "oklch": {
    "l": 0.30126,
    "c": 0.10553,
    "h": 293.1
  },
  "luminance": 0.02448
}

Semantic roles & 50–950 ramp

primary
#321F5D
secondary
#7B9246
accent
#DA4EAF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #321F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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