#22168B#22168B

#22168B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.178 H 274.4°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#22168B
RGBrgb(34, 22, 139)
HSLhsl(246, 73%, 32%)
HSVhsv(246, 84%, 55%)
CMYKcmyk(75.5%, 84.2%, 0%, 45.5%)
CIE-LABlab(19.13, 43.20, -61.35)
CIE-LCHlch(19.13, 75.03, 305.15°)
OKLaboklab(32.21% 0.0136 -0.1774)
OKLCHoklch(32.21% 0.178 274.4)
XYZxyz(5.6053, 2.7774, 24.6618)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22168B #7F8B16
analogous
#16458B #22168B #5D168B
triadic
#22168B #8B2216 #168B22
tetradic
#22168B #8B1645 #7F8B16 #168B5D
square
#22168B #8B1645 #7F8B16 #168B5D
split-complementary
#22168B #8B5D16 #458B16
monochromatic
#080521 #150E56 #22168B #2F1EC0 #4C3BE0

Accessibility & contrast

On white

13.50
#22168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#22168B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22168B
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22168B#FFFFFF#000000##FFFFFF
##22168B1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002989
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #22168b;
/* rgb */ color: rgb(34, 22, 139);
/* oklch */ color: oklch(32.2% 0.178 274.4);
Tailwind
colors: {
  custom: {
    50: '#7057ae',
    500: '#22168b',
    950: '#000000',
  },
}
SCSS
$custom: #22168b;
$custom-light: #7057ae;
$custom-dark: #000000;
JSON
{
  "hex": "#22168b",
  "rgb": {
    "r": 34,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 246.154,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32206,
    "c": 0.17791,
    "h": 274.4
  },
  "luminance": 0.02778
}

Semantic roles & 50–950 ramp

primary
#22168B
secondary
#B2BF3E
accent
#EF38DD
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #22168B

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

Preview Lab → · Contrast checker → · Palette generator →

#22168B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva