#321A77#321A77

#321A77 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.147 H 286.5°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#321A77
RGBrgb(50, 26, 119)
HSLhsl(255, 64%, 28%)
HSVhsv(255, 78%, 47%)
CMYKcmyk(58%, 78.2%, 0%, 53.3%)
CIE-LABlab(19.01, 36.62, -48.83)
CIE-LCHlch(19.01, 61.04, 306.87°)
OKLaboklab(31.81% 0.0417 -0.1405)
OKLCHoklch(31.81% 0.147 286.5)
XYZxyz(5.0136, 2.7485, 17.7155)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A77 #5F771A
analogous
#1A3077 #321A77 #601A77
triadic
#321A77 #77321A #1A7732
tetradic
#321A77 #771A30 #5F771A #1A7760
square
#321A77 #771A30 #5F771A #1A7760
split-complementary
#321A77 #77601A #30771A
monochromatic
#0B0519 #1D0F45 #321A77 #4725A9 #6038D3

Accessibility & contrast

On white

13.55
#321A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#321A77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321A77
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A77#FFFFFF#000000##FFFFFF
##321A771.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002B75
Tritanopia (blue-blind)
#123447
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321a77;
/* rgb */ color: rgb(50, 26, 119);
/* oklch */ color: oklch(31.8% 0.147 286.5);
Tailwind
colors: {
  custom: {
    50: '#735a9f',
    500: '#321a77',
    950: '#000000',
  },
}
SCSS
$custom: #321a77;
$custom-light: #735a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#321a77",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 119
  },
  "hsl": {
    "h": 255.484,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31812,
    "c": 0.14659,
    "h": 286.5
  },
  "luminance": 0.02749
}

Semantic roles & 50–950 ramp

primary
#321A77
secondary
#90AC41
accent
#E741BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #321A77

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

Preview Lab → · Contrast checker → · Palette generator →

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