#321E9D#321E9D

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

Color values

HEX#321E9D
RGBrgb(50, 30, 157)
HSLhsl(249, 68%, 37%)
HSVhsv(249, 81%, 62%)
CMYKcmyk(68.2%, 80.9%, 0%, 38.4%)
CIE-LABlab(23.80, 46.30, -64.70)
CIE-LCHlch(23.80, 79.56, 305.59°)
OKLaboklab(36.38% 0.028 -0.1869)
OKLCHoklch(36.38% 0.189 278.5)
XYZxyz(7.8635, 4.0403, 32.2572)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E9D #899D1E
analogous
#1E4A9D #321E9D #721E9D
triadic
#321E9D #9D321E #1E9D32
tetradic
#321E9D #9D1E4A #899D1E #1E9D72
square
#321E9D #9D1E4A #899D1E #1E9D72
split-complementary
#321E9D #9D721E #4A9D1E
monochromatic
#110A36 #22146A #321E9D #4228D0 #6C57DF

Accessibility & contrast

On white

11.61
#321E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321E9D
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E9D#FFFFFF#000000##FFFFFF
##321E9D1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321e9d;
/* rgb */ color: rgb(50, 30, 157);
/* oklch */ color: oklch(36.4% 0.189 278.5);
Tailwind
colors: {
  custom: {
    50: '#7a5ebb',
    500: '#321e9d',
    950: '#000000',
  },
}
SCSS
$custom: #321e9d;
$custom-light: #7a5ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#321e9d",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 249.449,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36381,
    "c": 0.18897,
    "h": 278.5
  },
  "luminance": 0.04041
}

Semantic roles & 50–950 ramp

primary
#321E9D
secondary
#B1C254
accent
#EB3DCF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #321E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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