#221688#221688

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

Color values

HEX#221688
RGBrgb(34, 22, 136)
HSLhsl(246, 72%, 31%)
HSVhsv(246, 84%, 53%)
CMYKcmyk(75%, 83.8%, 0%, 46.7%)
CIE-LABlab(18.76, 42.25, -60.08)
CIE-LCHlch(18.76, 73.45, 305.12°)
OKLaboklab(31.85% 0.0145 -0.1737)
OKLCHoklch(31.85% 0.174 274.8)
XYZxyz(5.3891, 2.6909, 23.5232)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221688 #7C8816
analogous
#164388 #221688 #5B1688
triadic
#221688 #882216 #168822
tetradic
#221688 #881643 #7C8816 #16885B
square
#221688 #881643 #7C8816 #16885B
split-complementary
#221688 #885B16 #438816
monochromatic
#08051F #150D53 #221688 #2F1FBD #4B39DF

Accessibility & contrast

On white

13.65
#221688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #221688
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221688#FFFFFF#000000##FFFFFF
##2216881.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #221688;
/* rgb */ color: rgb(34, 22, 136);
/* oklch */ color: oklch(31.8% 0.174 274.8);
Tailwind
colors: {
  custom: {
    50: '#7057ac',
    500: '#221688',
    950: '#000000',
  },
}
SCSS
$custom: #221688;
$custom-light: #7057ac;
$custom-dark: #000000;
JSON
{
  "hex": "#221688",
  "rgb": {
    "r": 34,
    "g": 22,
    "b": 136
  },
  "hsl": {
    "h": 246.316,
    "s": 72.152,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31845,
    "c": 0.17431,
    "h": 274.8
  },
  "luminance": 0.02691
}

Semantic roles & 50–950 ramp

primary
#221688
secondary
#AFBC3E
accent
#EF39DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #221688

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

Preview Lab → · Contrast checker → · Palette generator →

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