#321A76#321A76

#321A76 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.145 H 286.8°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#321A76
RGBrgb(50, 26, 118)
HSLhsl(256, 64%, 28%)
HSVhsv(256, 78%, 46%)
CMYKcmyk(57.6%, 78%, 0%, 53.7%)
CIE-LABlab(18.91, 36.31, -48.35)
CIE-LCHlch(18.91, 60.47, 306.91°)
OKLaboklab(31.71% 0.0419 -0.1391)
OKLCHoklch(31.71% 0.145 286.8)
XYZxyz(4.9538, 2.7246, 17.4009)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A76 #5E761A
analogous
#1A3076 #321A76 #601A76
triadic
#321A76 #76321A #1A7632
tetradic
#321A76 #761A30 #5E761A #1A7660
square
#321A76 #761A30 #5E761A #1A7660
split-complementary
#321A76 #76601A #30761A
monochromatic
#0B0619 #1D0F44 #321A76 #4725A8 #6037D3

Accessibility & contrast

On white

13.59
#321A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321A76
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321A76#FFFFFF#000000##FFFFFF
##321A761.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002B74
Tritanopia (blue-blind)
#143447
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321a76;
/* rgb */ color: rgb(50, 26, 118);
/* oklch */ color: oklch(31.7% 0.145 286.8);
Tailwind
colors: {
  custom: {
    50: '#73599e',
    500: '#321a76',
    950: '#000000',
  },
}
SCSS
$custom: #321a76;
$custom-light: #73599e;
$custom-dark: #000000;
JSON
{
  "hex": "#321a76",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 118
  },
  "hsl": {
    "h": 255.652,
    "s": 63.889,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31709,
    "c": 0.14533,
    "h": 286.8
  },
  "luminance": 0.02725
}

Semantic roles & 50–950 ramp

primary
#321A76
secondary
#8FAB41
accent
#E741BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #321A76

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

Preview Lab → · Contrast checker → · Palette generator →

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