#321160#321160

#321160 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.128 H 296.0°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#321160
RGBrgb(50, 17, 96)
HSLhsl(265, 70%, 22%)
HSVhsv(265, 82%, 38%)
CMYKcmyk(47.9%, 82.3%, 0%, 62.4%)
CIE-LABlab(15.08, 34.36, -40.25)
CIE-LCHlch(15.08, 52.92, 310.49°)
OKLaboklab(28.35% 0.0563 -0.1153)
OKLCHoklch(28.35% 0.128 296)
XYZxyz(3.6266, 1.9234, 11.2442)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321160 #3F6011
analogous
#111860 #321160 #5A1160
triadic
#321160 #603211 #116032
tetradic
#321160 #601118 #3F6011 #11605A
square
#321160 #601118 #3F6011 #11605A
split-complementary
#321160 #605A11 #186011
monochromatic
#0E051A #17082C #321160 #4D1A94 #6823C8

Accessibility & contrast

On white

15.16
#321160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#321160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321160
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321160#FFFFFF#000000##FFFFFF
##3211601.0015.161.3815.16
#FFFFFF15.161.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321160;
/* rgb */ color: rgb(50, 17, 96);
/* oklch */ color: oklch(28.4% 0.128 296.0);
Tailwind
colors: {
  custom: {
    50: '#70538e',
    500: '#321160',
    950: '#000000',
  },
}
SCSS
$custom: #321160;
$custom-light: #70538e;
$custom-dark: #000000;
JSON
{
  "hex": "#321160",
  "rgb": {
    "r": 50,
    "g": 17,
    "b": 96
  },
  "hsl": {
    "h": 265.063,
    "s": 69.912,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28352,
    "c": 0.12831,
    "h": 296
  },
  "luminance": 0.01924
}

Semantic roles & 50–950 ramp

primary
#321160
secondary
#6F9934
accent
#ED3BA3
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #321160

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

Preview Lab → · Contrast checker → · Palette generator →

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