#321A75#321A75

#321A75 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.144 H 287.0°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#321A75
RGBrgb(50, 26, 117)
HSLhsl(256, 64%, 28%)
HSVhsv(256, 78%, 46%)
CMYKcmyk(57.3%, 77.8%, 0%, 54.1%)
CIE-LABlab(18.80, 36.00, -47.88)
CIE-LCHlch(18.80, 59.90, 306.94°)
OKLaboklab(31.61% 0.0422 -0.1377)
OKLCHoklch(31.61% 0.144 287)
XYZxyz(4.8947, 2.7010, 17.0896)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321A75 #5D751A
analogous
#1A3075 #321A75 #5F1A75
triadic
#321A75 #75321A #1A7532
tetradic
#321A75 #751A30 #5D751A #1A755F
square
#321A75 #751A30 #5D751A #1A755F
split-complementary
#321A75 #755F1A #30751A
monochromatic
#0B0619 #1D0F43 #321A75 #4725A7 #6037D3

Accessibility & contrast

On white

13.63
#321A75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#321A75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##321A75#FFFFFF#000000##FFFFFF
##321A751.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)
#003078
Deuteranopia (green-blind)
#002B73
Tritanopia (blue-blind)
#153346
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321a75;
/* rgb */ color: rgb(50, 26, 117);
/* oklch */ color: oklch(31.6% 0.144 287.0);
Tailwind
colors: {
  custom: {
    50: '#72599e',
    500: '#321a75',
    950: '#000000',
  },
}
SCSS
$custom: #321a75;
$custom-light: #72599e;
$custom-dark: #000000;
JSON
{
  "hex": "#321a75",
  "rgb": {
    "r": 50,
    "g": 26,
    "b": 117
  },
  "hsl": {
    "h": 255.824,
    "s": 63.636,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31607,
    "c": 0.14407,
    "h": 287
  },
  "luminance": 0.02701
}

Semantic roles & 50–950 ramp

primary
#321A75
secondary
#8EAA41
accent
#E741BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #321A75

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

Preview Lab → · Contrast checker → · Palette generator →

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