#321380#321380

#321380 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.164 H 285.4°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#321380
RGBrgb(50, 19, 128)
HSLhsl(257, 74%, 29%)
HSVhsv(257, 85%, 50%)
CMYKcmyk(60.9%, 85.2%, 0%, 49.8%)
CIE-LABlab(18.81, 42.69, -54.90)
CIE-LCHlch(18.81, 69.54, 307.87°)
OKLaboklab(31.96% 0.0435 -0.1582)
OKLCHoklch(31.96% 0.164 285.4)
XYZxyz(5.4434, 2.7020, 20.6526)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321380 #618013
analogous
#132B80 #321380 #691380
triadic
#321380 #803213 #138032
tetradic
#321380 #80132B #618013 #138069
square
#321380 #80132B #618013 #138069
split-complementary
#321380 #806913 #2B8013
monochromatic
#0A041B #1D0B4B #321380 #471BB5 #602DE0

Accessibility & contrast

On white

13.63
#321380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#321380 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##321380#FFFFFF#000000##FFFFFF
##3213801.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)
#003183
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#03354B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321380;
/* rgb */ color: rgb(50, 19, 128);
/* oklch */ color: oklch(32.0% 0.164 285.4);
Tailwind
colors: {
  custom: {
    50: '#7556a6',
    500: '#321380',
    950: '#000000',
  },
}
SCSS
$custom: #321380;
$custom-light: #7556a6;
$custom-dark: #000000;
JSON
{
  "hex": "#321380",
  "rgb": {
    "r": 50,
    "g": 19,
    "b": 128
  },
  "hsl": {
    "h": 257.064,
    "s": 74.15,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31964,
    "c": 0.16405,
    "h": 285.4
  },
  "luminance": 0.02702
}

Semantic roles & 50–950 ramp

primary
#321380
secondary
#92B539
accent
#F137BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #321380

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

Preview Lab → · Contrast checker → · Palette generator →

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