#321E98#321E98

#321E98 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.183 H 279.3°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#321E98
RGBrgb(50, 30, 152)
HSLhsl(250, 67%, 36%)
HSVhsv(250, 80%, 60%)
CMYKcmyk(67.1%, 80.3%, 0%, 40.4%)
CIE-LABlab(23.25, 44.77, -62.55)
CIE-LCHlch(23.25, 76.92, 305.59°)
OKLaboklab(35.83% 0.0295 -0.1806)
OKLCHoklch(35.83% 0.183 279.3)
XYZxyz(7.4453, 3.8730, 30.0549)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321E98 #84981E
analogous
#1E4798 #321E98 #6F1E98
triadic
#321E98 #98321E #1E9832
tetradic
#321E98 #981E47 #84981E #1E986F
square
#321E98 #981E47 #84981E #1E986F
split-complementary
#321E98 #986F1E #47981E
monochromatic
#100A32 #211465 #321E98 #4328CB #6A53DD

Accessibility & contrast

On white

11.83
#321E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321E98
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321E98#FFFFFF#000000##FFFFFF
##321E981.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #321e98;
/* rgb */ color: rgb(50, 30, 152);
/* oklch */ color: oklch(35.8% 0.183 279.3);
Tailwind
colors: {
  custom: {
    50: '#795eb8',
    500: '#321e98',
    950: '#000000',
  },
}
SCSS
$custom: #321e98;
$custom-light: #795eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#321e98",
  "rgb": {
    "r": 50,
    "g": 30,
    "b": 152
  },
  "hsl": {
    "h": 249.836,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3583,
    "c": 0.18302,
    "h": 279.3
  },
  "luminance": 0.03874
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #321E98

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

Preview Lab → · Contrast checker → · Palette generator →

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