#221588#221588

#221588 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.175 H 274.8°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#221588
RGBrgb(34, 21, 136)
HSLhsl(247, 73%, 31%)
HSVhsv(247, 85%, 53%)
CMYKcmyk(75%, 84.6%, 0%, 46.7%)
CIE-LABlab(18.60, 42.73, -60.34)
CIE-LCHlch(18.60, 73.94, 305.30°)
OKLaboklab(31.73% 0.0148 -0.1745)
OKLCHoklch(31.73% 0.175 274.8)
XYZxyz(5.3703, 2.6535, 23.5169)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221588 #7B8815
analogous
#154188 #221588 #5B1588
triadic
#221588 #882215 #158822
tetradic
#221588 #881541 #7B8815 #15885B
square
#221588 #881541 #7B8815 #15885B
split-complementary
#221588 #885B15 #418815
monochromatic
#07051E #150D53 #221588 #2F1DBD #4A37E0

Accessibility & contrast

On white

13.72
#221588 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#221588 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221588
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221588#FFFFFF#000000##FFFFFF
##2215881.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328B
Deuteranopia (green-blind)
#002886
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #221588;
/* rgb */ color: rgb(34, 21, 136);
/* oklch */ color: oklch(31.7% 0.175 274.8);
Tailwind
colors: {
  custom: {
    50: '#7057ac',
    500: '#221588',
    950: '#000000',
  },
}
SCSS
$custom: #221588;
$custom-light: #7057ac;
$custom-dark: #000000;
JSON
{
  "hex": "#221588",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 136
  },
  "hsl": {
    "h": 246.783,
    "s": 73.248,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31733,
    "c": 0.1751,
    "h": 274.8
  },
  "luminance": 0.02654
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #221588

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

Preview Lab → · Contrast checker → · Palette generator →

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