#321480#321480

#321480 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.1% C 0.163 H 285.2°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#321480
RGBrgb(50, 20, 128)
HSLhsl(257, 73%, 29%)
HSVhsv(257, 84%, 50%)
CMYKcmyk(60.9%, 84.4%, 0%, 49.8%)
CIE-LABlab(18.96, 42.26, -54.65)
CIE-LCHlch(18.96, 69.08, 307.71°)
OKLaboklab(32.07% 0.0429 -0.1575)
OKLCHoklch(32.07% 0.163 285.2)
XYZxyz(5.4606, 2.7366, 20.6584)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321480 #628014
analogous
#142C80 #321480 #681480
triadic
#321480 #803214 #148032
tetradic
#321480 #80142C #628014 #148068
square
#321480 #80142C #628014 #148068
split-complementary
#321480 #806814 #2C8014
monochromatic
#0A041A #1D0C4B #321480 #471CB5 #6030DF

Accessibility & contrast

On white

13.57
#321480 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#321480 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321480
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321480#FFFFFF#000000##FFFFFF
##3214801.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#03354B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321480;
/* rgb */ color: rgb(50, 20, 128);
/* oklch */ color: oklch(32.1% 0.163 285.2);
Tailwind
colors: {
  custom: {
    50: '#7557a6',
    500: '#321480',
    950: '#000000',
  },
}
SCSS
$custom: #321480;
$custom-light: #7557a6;
$custom-dark: #000000;
JSON
{
  "hex": "#321480",
  "rgb": {
    "r": 50,
    "g": 20,
    "b": 128
  },
  "hsl": {
    "h": 256.667,
    "s": 72.973,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32065,
    "c": 0.16323,
    "h": 285.2
  },
  "luminance": 0.02737
}

Semantic roles & 50–950 ramp

primary
#321480
secondary
#93B53B
accent
#F038BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #321480

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

Preview Lab → · Contrast checker → · Palette generator →

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