#321161#321161

#321161 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.5% C 0.130 H 295.6°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#321161
RGBrgb(50, 17, 97)
HSLhsl(265, 70%, 22%)
HSVhsv(265, 82%, 38%)
CMYKcmyk(48.5%, 82.5%, 0%, 62%)
CIE-LABlab(15.18, 34.65, -40.75)
CIE-LCHlch(15.18, 53.49, 310.37°)
OKLaboklab(28.45% 0.0559 -0.1168)
OKLCHoklch(28.45% 0.13 295.6)
XYZxyz(3.6729, 1.9420, 11.4883)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321161 #406111
analogous
#111861 #321161 #5A1161
triadic
#321161 #613211 #116132
tetradic
#321161 #611118 #406111 #11615A
square
#321161 #611118 #406111 #11615A
split-complementary
#321161 #615A11 #186111
monochromatic
#0D051A #17082D #321161 #4D1A95 #6823C9

Accessibility & contrast

On white

15.13
#321161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#321161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321161
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321161#FFFFFF#000000##FFFFFF
##3211611.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002763
Deuteranopia (green-blind)
#00255F
Tritanopia (blue-blind)
#252739
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #321161;
/* rgb */ color: rgb(50, 17, 97);
/* oklch */ color: oklch(28.5% 0.130 295.6);
Tailwind
colors: {
  custom: {
    50: '#70538f',
    500: '#321161',
    950: '#000000',
  },
}
SCSS
$custom: #321161;
$custom-light: #70538f;
$custom-dark: #000000;
JSON
{
  "hex": "#321161",
  "rgb": {
    "r": 50,
    "g": 17,
    "b": 97
  },
  "hsl": {
    "h": 264.75,
    "s": 70.175,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28452,
    "c": 0.1295,
    "h": 295.6
  },
  "luminance": 0.01942
}

Semantic roles & 50–950 ramp

primary
#321161
secondary
#709934
accent
#ED3BA3
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #321161

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

Preview Lab → · Contrast checker → · Palette generator →

#321161 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva