#221589#221589

#221589 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.176 H 274.7°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#221589
RGBrgb(34, 21, 137)
HSLhsl(247, 73%, 31%)
HSVhsv(247, 85%, 54%)
CMYKcmyk(75.2%, 84.7%, 0%, 46.3%)
CIE-LABlab(18.72, 43.04, -60.77)
CIE-LCHlch(18.72, 74.47, 305.31°)
OKLaboklab(31.85% 0.0145 -0.1757)
OKLCHoklch(31.85% 0.176 274.7)
XYZxyz(5.4417, 2.6820, 23.8930)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221589 #7C8915
analogous
#154289 #221589 #5C1589
triadic
#221589 #892215 #158922
tetradic
#221589 #891542 #7C8915 #15895C
square
#221589 #891542 #7C8915 #15895C
split-complementary
#221589 #895C15 #428915
monochromatic
#08051F #150D54 #221589 #2F1DBE #4B38E0

Accessibility & contrast

On white

13.67
#221589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#221589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221589
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221589#FFFFFF#000000##FFFFFF
##2215891.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002887
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #221589;
/* rgb */ color: rgb(34, 21, 137);
/* oklch */ color: oklch(31.9% 0.176 274.7);
Tailwind
colors: {
  custom: {
    50: '#7057ad',
    500: '#221589',
    950: '#000000',
  },
}
SCSS
$custom: #221589;
$custom-light: #7057ad;
$custom-dark: #000000;
JSON
{
  "hex": "#221589",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 137
  },
  "hsl": {
    "h": 246.724,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31854,
    "c": 0.17629,
    "h": 274.7
  },
  "luminance": 0.02683
}

Semantic roles & 50–950 ramp

primary
#221589
secondary
#AFBD3D
accent
#F038DB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #221589

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

Preview Lab → · Contrast checker → · Palette generator →

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