#221788#221788

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

Color values

HEX#221788
RGBrgb(34, 23, 136)
HSLhsl(246, 71%, 31%)
HSVhsv(246, 83%, 53%)
CMYKcmyk(75%, 83.1%, 0%, 46.7%)
CIE-LABlab(18.93, 41.76, -59.80)
CIE-LCHlch(18.93, 72.94, 304.93°)
OKLaboklab(31.96% 0.0141 -0.1729)
OKLCHoklch(31.96% 0.173 274.7)
XYZxyz(5.4085, 2.7299, 23.5297)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221788 #7D8817
analogous
#174488 #221788 #5A1788
triadic
#221788 #882217 #178822
tetradic
#221788 #881744 #7D8817 #17885A
square
#221788 #881744 #7D8817 #17885A
split-complementary
#221788 #885A17 #448817
monochromatic
#08051F #150E54 #221788 #2F20BC #4B3BDE

Accessibility & contrast

On white

13.58
#221788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#221788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221788
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221788#FFFFFF#000000##FFFFFF
##2217881.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338B
Deuteranopia (green-blind)
#002986
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #221788;
/* rgb */ color: rgb(34, 23, 136);
/* oklch */ color: oklch(32.0% 0.173 274.7);
Tailwind
colors: {
  custom: {
    50: '#7058ac',
    500: '#221788',
    950: '#000000',
  },
}
SCSS
$custom: #221788;
$custom-light: #7058ac;
$custom-dark: #000000;
JSON
{
  "hex": "#221788",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 245.841,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3196,
    "c": 0.17349,
    "h": 274.7
  },
  "luminance": 0.0273
}

Semantic roles & 50–950 ramp

primary
#221788
secondary
#B0BC3F
accent
#EE3ADC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #221788

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

Preview Lab → · Contrast checker → · Palette generator →

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