#221989#221989

#221989 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.173 H 274.3°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#221989
RGBrgb(34, 25, 137)
HSLhsl(245, 69%, 32%)
HSVhsv(245, 82%, 54%)
CMYKcmyk(75.2%, 81.8%, 0%, 46.3%)
CIE-LABlab(19.40, 41.08, -59.65)
CIE-LCHlch(19.40, 72.43, 304.55°)
OKLaboklab(32.32% 0.013 -0.1725)
OKLCHoklch(32.32% 0.173 274.3)
XYZxyz(5.5212, 2.8409, 23.9194)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221989 #808919
analogous
#194889 #221989 #5A1989
triadic
#221989 #892219 #198922
tetradic
#221989 #891948 #808919 #19895A
square
#221989 #891948 #808919 #19895A
split-complementary
#221989 #895A19 #488919
monochromatic
#080621 #151055 #221989 #2F22BD #4D40DC

Accessibility & contrast

On white

13.39
#221989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#221989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221989
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221989#FFFFFF#000000##FFFFFF
##2219891.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002A87
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #221989;
/* rgb */ color: rgb(34, 25, 137);
/* oklch */ color: oklch(32.3% 0.173 274.3);
Tailwind
colors: {
  custom: {
    50: '#7059ad',
    500: '#221989',
    950: '#000000',
  },
}
SCSS
$custom: #221989;
$custom-light: #7059ad;
$custom-dark: #000000;
JSON
{
  "hex": "#221989",
  "rgb": {
    "r": 34,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 244.821,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3232,
    "c": 0.17302,
    "h": 274.3
  },
  "luminance": 0.02841
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #221989

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

Preview Lab → · Contrast checker → · Palette generator →

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