#321B74#321B74

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

Color values

HEX#321B74
RGBrgb(50, 27, 116)
HSLhsl(256, 62%, 28%)
HSVhsv(256, 77%, 45%)
CMYKcmyk(56.9%, 76.7%, 0%, 54.5%)
CIE-LABlab(18.90, 35.15, -47.08)
CIE-LCHlch(18.90, 58.75, 306.74°)
OKLaboklab(31.64% 0.0416 -0.1354)
OKLCHoklch(31.64% 0.142 287.1)
XYZxyz(4.8588, 2.7227, 16.7891)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B74 #5D741B
analogous
#1B3074 #321B74 #5E1B74
triadic
#321B74 #74321B #1B7432
tetradic
#321B74 #741B30 #5D741B #1B745E
square
#321B74 #741B30 #5D741B #1B745E
split-complementary
#321B74 #745E1B #30741B
monochromatic
#0B0619 #1D0F42 #321B74 #4727A6 #6039D1

Accessibility & contrast

On white

13.60
#321B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321B74
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B74#FFFFFF#000000##FFFFFF
##321B741.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002B72
Tritanopia (blue-blind)
#163346
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321b74;
/* rgb */ color: rgb(50, 27, 116);
/* oklch */ color: oklch(31.6% 0.142 287.1);
Tailwind
colors: {
  custom: {
    50: '#725a9d',
    500: '#321b74',
    950: '#000000',
  },
}
SCSS
$custom: #321b74;
$custom-light: #725a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#321b74",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 255.506,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31642,
    "c": 0.14169,
    "h": 287.1
  },
  "luminance": 0.02723
}

Semantic roles & 50–950 ramp

primary
#321B74
secondary
#8EA942
accent
#E542BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #321B74

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

Preview Lab → · Contrast checker → · Palette generator →

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