#321B72#321B72

#321B72 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.139 H 287.6°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#321B72
RGBrgb(50, 27, 114)
HSLhsl(256, 62%, 28%)
HSVhsv(256, 76%, 45%)
CMYKcmyk(56.1%, 76.3%, 0%, 55.3%)
CIE-LABlab(18.70, 34.52, -46.11)
CIE-LCHlch(18.70, 57.61, 306.82°)
OKLaboklab(31.44% 0.0421 -0.1326)
OKLCHoklch(31.44% 0.139 287.6)
XYZxyz(4.7437, 2.6766, 16.1830)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B72 #5B721B
analogous
#1B3072 #321B72 #5D1B72
triadic
#321B72 #72321B #1B7232
tetradic
#321B72 #721B30 #5B721B #1B725D
square
#321B72 #721B30 #5B721B #1B725D
split-complementary
#321B72 #725D1B #30721B
monochromatic
#0B0619 #1C0F41 #321B72 #4827A3 #6038D0

Accessibility & contrast

On white

13.68
#321B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321B72
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B72#FFFFFF#000000##FFFFFF
##321B721.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#183345
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #321b72;
/* rgb */ color: rgb(50, 27, 114);
/* oklch */ color: oklch(31.4% 0.139 287.6);
Tailwind
colors: {
  custom: {
    50: '#725a9b',
    500: '#321b72',
    950: '#000000',
  },
}
SCSS
$custom: #321b72;
$custom-light: #725a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#321b72",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 255.862,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31442,
    "c": 0.13913,
    "h": 287.6
  },
  "luminance": 0.02677
}

Semantic roles & 50–950 ramp

primary
#321B72
secondary
#8CA742
accent
#E543BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #321B72

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

Preview Lab → · Contrast checker → · Palette generator →

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