#221988#221988

#221988 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.172 H 274.4°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#221988
RGBrgb(34, 25, 136)
HSLhsl(245, 69%, 32%)
HSVhsv(245, 82%, 53%)
CMYKcmyk(75%, 81.6%, 0%, 46.7%)
CIE-LABlab(19.28, 40.75, -59.22)
CIE-LCHlch(19.28, 71.89, 304.53°)
OKLaboklab(32.2% 0.0133 -0.1713)
OKLCHoklch(32.2% 0.172 274.4)
XYZxyz(5.4498, 2.8124, 23.5434)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221988 #7F8819
analogous
#194888 #221988 #5A1988
triadic
#221988 #882219 #198822
tetradic
#221988 #881948 #7F8819 #19885A
square
#221988 #881948 #7F8819 #19885A
split-complementary
#221988 #885A19 #488819
monochromatic
#080621 #150F54 #221988 #2F23BC #4C40DC

Accessibility & contrast

On white

13.44
#221988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#221988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221988
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221988#FFFFFF#000000##FFFFFF
##2219881.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002A86
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #221988;
/* rgb */ color: rgb(34, 25, 136);
/* oklch */ color: oklch(32.2% 0.172 274.4);
Tailwind
colors: {
  custom: {
    50: '#6f59ac',
    500: '#221988',
    950: '#000000',
  },
}
SCSS
$custom: #221988;
$custom-light: #6f59ac;
$custom-dark: #000000;
JSON
{
  "hex": "#221988",
  "rgb": {
    "r": 34,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 244.865,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32203,
    "c": 0.1718,
    "h": 274.4
  },
  "luminance": 0.02813
}

Semantic roles & 50–950 ramp

primary
#221988
secondary
#B2BB41
accent
#EC3CDE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #221988

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

Preview Lab → · Contrast checker → · Palette generator →

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