#321E97#321E97

#321E97 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.182 H 279.4°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#321E97
RGBrgb(50, 30, 151)
HSLhsl(250, 67%, 35%)
HSVhsv(250, 80%, 59%)
CMYKcmyk(66.9%, 80.1%, 0%, 40.8%)
CIE-LABlab(23.14, 44.46, -62.12)
CIE-LCHlch(23.14, 76.39, 305.59°)
OKLaboklab(35.72% 0.0298 -0.1794)
OKLCHoklch(35.72% 0.182 279.4)
XYZxyz(7.3638, 3.8404, 29.6254)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E97 #83971E
analogous
#1E4797 #321E97 #6E1E97
triadic
#321E97 #97321E #1E9732
tetradic
#321E97 #971E47 #83971E #1E976E
square
#321E97 #971E47 #83971E #1E976E
split-complementary
#321E97 #976E1E #47971E
monochromatic
#100A31 #211464 #321E97 #4328CA #6953DD

Accessibility & contrast

On white

11.88
#321E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#321E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321E97
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E97#FFFFFF#000000##FFFFFF
##321E971.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #321e97;
/* rgb */ color: rgb(50, 30, 151);
/* oklch */ color: oklch(35.7% 0.182 279.4);
Tailwind
colors: {
  custom: {
    50: '#795eb7',
    500: '#321e97',
    950: '#000000',
  },
}
SCSS
$custom: #321e97;
$custom-light: #795eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#321e97",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 249.917,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3572,
    "c": 0.18182,
    "h": 279.4
  },
  "luminance": 0.03841
}

Semantic roles & 50–950 ramp

primary
#321E97
secondary
#AEC051
accent
#EA3ECD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321E97

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

Preview Lab → · Contrast checker → · Palette generator →

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