#322198#322198

#322198 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.180 H 278.9°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#322198
RGBrgb(50, 33, 152)
HSLhsl(249, 64%, 36%)
HSVhsv(249, 78%, 60%)
CMYKcmyk(67.1%, 78.3%, 0%, 40.4%)
CIE-LABlab(23.78, 43.24, -61.68)
CIE-LCHlch(23.78, 75.33, 305.03°)
OKLaboklab(36.2% 0.0278 -0.1781)
OKLCHoklch(36.2% 0.18 278.9)
XYZxyz(7.5249, 4.0322, 30.0814)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#322198 #879821
analogous
#214C98 #322198 #6E2198
triadic
#322198 #983221 #219832
tetradic
#322198 #98214C #879821 #21986E
square
#322198 #98214C #879821 #21986E
split-complementary
#322198 #986E21 #4C9821
monochromatic
#110B33 #211666 #322198 #432CCA #6B59DB

Accessibility & contrast

On white

11.62
#322198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#322198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #322198
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##322198#FFFFFF#000000##FFFFFF
##3221981.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #322198;
/* rgb */ color: rgb(50, 33, 152);
/* oklch */ color: oklch(36.2% 0.180 278.9);
Tailwind
colors: {
  custom: {
    50: '#795fb8',
    500: '#322198',
    950: '#000000',
  },
}
SCSS
$custom: #322198;
$custom-light: #795fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#322198",
  "rgb": {
    "r": 50,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 248.571,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.362,
    "c": 0.18028,
    "h": 278.9
  },
  "luminance": 0.04033
}

Semantic roles & 50–950 ramp

primary
#322198
secondary
#B0BF56
accent
#E740CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #322198

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

Preview Lab → · Contrast checker → · Palette generator →

#322198 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva