#321B8E#321B8E

#321B8E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.174 H 281.3°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#321B8E
RGBrgb(50, 27, 142)
HSLhsl(252, 68%, 33%)
HSVhsv(252, 81%, 56%)
CMYKcmyk(64.8%, 81%, 0%, 44.3%)
CIE-LABlab(21.63, 43.18, -59.03)
CIE-LCHlch(21.63, 73.14, 306.18°)
OKLaboklab(34.38% 0.0341 -0.1703)
OKLCHoklch(34.38% 0.174 281.3)
XYZxyz(6.5883, 3.4145, 25.8978)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321B8E #778E1B
analogous
#1B3D8E #321B8E #6B1B8E
triadic
#321B8E #8E321B #1B8E32
tetradic
#321B8E #8E1B3D #778E1B #1B8E6B
square
#321B8E #8E1B3D #778E1B #1B8E6B
split-complementary
#321B8E #8E6B1B #3D8E1B
monochromatic
#0E0727 #20115B #321B8E #4425C1 #6547DC

Accessibility & contrast

On white

12.48
#321B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#321B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321B8E
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321B8E#FFFFFF#000000##FFFFFF
##321B8E1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #321b8e;
/* rgb */ color: rgb(50, 27, 142);
/* oklch */ color: oklch(34.4% 0.174 281.3);
Tailwind
colors: {
  custom: {
    50: '#775bb0',
    500: '#321b8e',
    950: '#000000',
  },
}
SCSS
$custom: #321b8e;
$custom-light: #775bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#321b8e",
  "rgb": {
    "r": 50,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 252,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3438,
    "c": 0.17373,
    "h": 281.3
  },
  "luminance": 0.03415
}

Semantic roles & 50–950 ramp

primary
#321B8E
secondary
#A6BE47
accent
#EB3DC8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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