#321C80#321C80

#321C80 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.156 H 284.0°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#321C80
RGBrgb(50, 28, 128)
HSLhsl(253, 64%, 31%)
HSVhsv(253, 78%, 50%)
CMYKcmyk(60.9%, 78.1%, 0%, 49.8%)
CIE-LABlab(20.31, 38.35, -52.42)
CIE-LCHlch(20.31, 64.95, 306.19°)
OKLaboklab(33.01% 0.0376 -0.1511)
OKLCHoklch(33.01% 0.156 284)
XYZxyz(5.6257, 3.0668, 20.7134)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C80 #6A801C
analogous
#1C3880 #321C80 #641C80
triadic
#321C80 #80321C #1C8032
tetradic
#321C80 #801C38 #6A801C #1C8064
square
#321C80 #801C38 #6A801C #1C8064
split-complementary
#321C80 #80641C #38801C
monochromatic
#0B061C #1E114E #321C80 #4627B2 #6241D5

Accessibility & contrast

On white

13.02
#321C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#321C80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C80
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C80#FFFFFF#000000##FFFFFF
##321C801.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002E7E
Tritanopia (blue-blind)
#02384D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #321c80;
/* rgb */ color: rgb(50, 28, 128);
/* oklch */ color: oklch(33.0% 0.156 284.0);
Tailwind
colors: {
  custom: {
    50: '#745ba6',
    500: '#321c80',
    950: '#000000',
  },
}
SCSS
$custom: #321c80;
$custom-light: #745ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#321c80",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 128
  },
  "hsl": {
    "h": 253.2,
    "s": 64.103,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33007,
    "c": 0.15568,
    "h": 284
  },
  "luminance": 0.03067
}

Semantic roles & 50–950 ramp

primary
#321C80
secondary
#9BB344
accent
#E741C2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321C80

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

Preview Lab → · Contrast checker → · Palette generator →

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