#22168D#22168D

#22168D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.180 H 274.1°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#22168D
RGBrgb(34, 22, 141)
HSLhsl(246, 73%, 32%)
HSVhsv(246, 84%, 55%)
CMYKcmyk(75.9%, 84.4%, 0%, 44.7%)
CIE-LABlab(19.38, 43.83, -62.19)
CIE-LCHlch(19.38, 76.08, 305.18°)
OKLaboklab(32.45% 0.013 -0.1798)
OKLCHoklch(32.45% 0.18 274.1)
XYZxyz(5.7527, 2.8364, 25.4384)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22168D #818D16
analogous
#16468D #22168D #5D168D
triadic
#22168D #8D2216 #168D22
tetradic
#22168D #8D1646 #818D16 #168D5D
square
#22168D #8D1646 #818D16 #168D5D
split-complementary
#22168D #8D5D16 #468D16
monochromatic
#080523 #150E58 #22168D #2F1EC2 #4D3DE1

Accessibility & contrast

On white

13.40
#22168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#22168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22168D
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22168D#FFFFFF#000000##FFFFFF
##22168D1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#00298B
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #22168d;
/* rgb */ color: rgb(34, 22, 141);
/* oklch */ color: oklch(32.4% 0.180 274.1);
Tailwind
colors: {
  custom: {
    50: '#7158b0',
    500: '#22168d',
    950: '#000000',
  },
}
SCSS
$custom: #22168d;
$custom-light: #7158b0;
$custom-dark: #000000;
JSON
{
  "hex": "#22168d",
  "rgb": {
    "r": 34,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 246.05,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32448,
    "c": 0.1803,
    "h": 274.1
  },
  "luminance": 0.02837
}

Semantic roles & 50–950 ramp

primary
#22168D
secondary
#B3C13E
accent
#F038DD
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #22168D

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

Preview Lab → · Contrast checker → · Palette generator →

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