#321D6F#321D6F

#321D6F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.133 H 288.0°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#321D6F
RGBrgb(50, 29, 111)
HSLhsl(255, 59%, 27%)
HSVhsv(255, 74%, 44%)
CMYKcmyk(55%, 73.9%, 0%, 56.5%)
CIE-LABlab(18.82, 32.44, -43.98)
CIE-LCHlch(18.82, 54.65, 306.41°)
OKLaboklab(31.44% 0.041 -0.1263)
OKLCHoklch(31.44% 0.133 288)
XYZxyz(4.6232, 2.7043, 15.3142)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D6F #5A6F1D
analogous
#1D316F #321D6F #5B1D6F
triadic
#321D6F #6F321D #1D6F32
tetradic
#321D6F #6F1D31 #5A6F1D #1D6F5B
square
#321D6F #6F1D31 #5A6F1D #1D6F5B
split-complementary
#321D6F #6F5B1D #316F1D
monochromatic
#0B0618 #1C103E #321D6F #482AA0 #603BCC

Accessibility & contrast

On white

13.63
#321D6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#321D6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D6F
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D6F#FFFFFF#000000##FFFFFF
##321D6F1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#1B3243
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321d6f;
/* rgb */ color: rgb(50, 29, 111);
/* oklch */ color: oklch(31.4% 0.133 288.0);
Tailwind
colors: {
  custom: {
    50: '#715b99',
    500: '#321d6f',
    950: '#000000',
  },
}
SCSS
$custom: #321d6f;
$custom-light: #715b99;
$custom-dark: #000000;
JSON
{
  "hex": "#321d6f",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 111
  },
  "hsl": {
    "h": 255.366,
    "s": 58.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31438,
    "c": 0.13283,
    "h": 288
  },
  "luminance": 0.02705
}

Semantic roles & 50–950 ramp

primary
#321D6F
secondary
#8BA344
accent
#E246BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321D6F

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

Preview Lab → · Contrast checker → · Palette generator →

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