#321E9B#321E9B

#321E9B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.187 H 278.8°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#321E9B
RGBrgb(50, 30, 155)
HSLhsl(250, 68%, 36%)
HSVhsv(250, 81%, 61%)
CMYKcmyk(67.7%, 80.6%, 0%, 39.2%)
CIE-LABlab(23.58, 45.69, -63.84)
CIE-LCHlch(23.58, 78.51, 305.59°)
OKLaboklab(36.16% 0.0286 -0.1844)
OKLCHoklch(36.16% 0.187 278.8)
XYZxyz(7.6942, 3.9726, 31.3653)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E9B #879B1E
analogous
#1E499B #321E9B #711E9B
triadic
#321E9B #9B321E #1E9B32
tetradic
#321E9B #9B1E49 #879B1E #1E9B71
square
#321E9B #9B1E49 #879B1E #1E9B71
split-complementary
#321E9B #9B711E #499B1E
monochromatic
#110A34 #211468 #321E9B #4328CE #6B55DE

Accessibility & contrast

On white

11.70
#321E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#321E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E9B
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E9B#FFFFFF#000000##FFFFFF
##321E9B1.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003399
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #321e9b;
/* rgb */ color: rgb(50, 30, 155);
/* oklch */ color: oklch(36.2% 0.187 278.8);
Tailwind
colors: {
  custom: {
    50: '#7a5eba',
    500: '#321e9b',
    950: '#000000',
  },
}
SCSS
$custom: #321e9b;
$custom-light: #7a5eba;
$custom-dark: #000000;
JSON
{
  "hex": "#321e9b",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 155
  },
  "hsl": {
    "h": 249.6,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3616,
    "c": 0.1866,
    "h": 278.8
  },
  "luminance": 0.03973
}

Semantic roles & 50–950 ramp

primary
#321E9B
secondary
#B0C253
accent
#EA3DCF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #321E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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