#321D9E#321D9E

#321D9E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.4% C 0.191 H 278.5°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#321D9E
RGBrgb(50, 29, 158)
HSLhsl(250, 69%, 37%)
HSVhsv(250, 82%, 62%)
CMYKcmyk(68.4%, 81.6%, 0%, 38%)
CIE-LABlab(23.75, 47.08, -65.39)
CIE-LCHlch(23.75, 80.58, 305.75°)
OKLaboklab(36.38% 0.0282 -0.1889)
OKLCHoklch(36.38% 0.191 278.5)
XYZxyz(7.9243, 4.0248, 32.7004)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321D9E #899E1D
analogous
#1D499E #321D9E #731D9E
triadic
#321D9E #9E321D #1D9E32
tetradic
#321D9E #9E1D49 #899E1D #1D9E73
square
#321D9E #9E1D49 #899E1D #1D9E73
split-complementary
#321D9E #9E731D #499E1D
monochromatic
#110A37 #22146A #321D9E #4226D2 #6C56E0

Accessibility & contrast

On white

11.63
#321D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#321D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321D9E
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321D9E#FFFFFF#000000##FFFFFF
##321D9E1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00339C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #321d9e;
/* rgb */ color: rgb(50, 29, 158);
/* oklch */ color: oklch(36.4% 0.191 278.5);
Tailwind
colors: {
  custom: {
    50: '#7a5ebc',
    500: '#321d9e',
    950: '#000000',
  },
}
SCSS
$custom: #321d9e;
$custom-light: #7a5ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#321d9e",
  "rgb": {
    "r": 50,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 249.767,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36379,
    "c": 0.19098,
    "h": 278.5
  },
  "luminance": 0.04025
}

Semantic roles & 50–950 ramp

primary
#321D9E
secondary
#B1C354
accent
#EC3CCF
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #321D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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