#321EA1#321EA1

#321EA1 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.194 H 278.0°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#321EA1
RGBrgb(50, 30, 161)
HSLhsl(249, 69%, 37%)
HSVhsv(249, 81%, 63%)
CMYKcmyk(68.9%, 81.4%, 0%, 36.9%)
CIE-LABlab(24.25, 47.52, -66.39)
CIE-LCHlch(24.25, 81.65, 305.59°)
OKLaboklab(36.83% 0.0268 -0.1918)
OKLCHoklch(36.83% 0.194 278)
XYZxyz(8.2106, 4.1791, 34.0853)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321EA1 #8DA11E
analogous
#1E4CA1 #321EA1 #731EA1
triadic
#321EA1 #A1321E #1EA132
tetradic
#321EA1 #A11E4C #8DA11E #1EA173
square
#321EA1 #A11E4C #8DA11E #1EA173
split-complementary
#321EA1 #A1731E #4CA11E
monochromatic
#120B3A #22146D #321EA1 #4228D5 #6E59E0

Accessibility & contrast

On white

11.44
#321EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#321EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321EA1
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321EA1#FFFFFF#000000##FFFFFF
##321EA11.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA5
Deuteranopia (green-blind)
#00349F
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #321ea1;
/* rgb */ color: rgb(50, 30, 161);
/* oklch */ color: oklch(36.8% 0.194 278.0);
Tailwind
colors: {
  custom: {
    50: '#7b5ebe',
    500: '#321ea1',
    950: '#000000',
  },
}
SCSS
$custom: #321ea1;
$custom-light: #7b5ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#321ea1",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 249.16,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36826,
    "c": 0.19368,
    "h": 278
  },
  "luminance": 0.0418
}

Semantic roles & 50–950 ramp

primary
#321EA1
secondary
#B3C457
accent
#EB3CD1
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #321EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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