#22166D#22166D

#22166D is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.7% C 0.141 H 279.0°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#22166D
RGBrgb(34, 22, 109)
HSLhsl(248, 66%, 26%)
HSVhsv(248, 80%, 43%)
CMYKcmyk(68.8%, 79.8%, 0%, 57.3%)
CIE-LABlab(15.58, 33.43, -48.06)
CIE-LCHlch(15.58, 58.54, 304.82°)
OKLaboklab(28.69% 0.0221 -0.1388)
OKLCHoklch(28.69% 0.141 279)
XYZxyz(3.7060, 2.0177, 14.6592)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22166D #616D16
analogous
#16356D #22166D #4D166D
triadic
#22166D #6D2216 #166D22
tetradic
#22166D #6D1635 #616D16 #166D4D
square
#22166D #6D1635 #616D16 #166D4D
split-complementary
#22166D #6D4D16 #356D16
monochromatic
#080519 #120C3A #22166D #3220A0 #422BD3

Accessibility & contrast

On white

14.96
#22166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#22166D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22166D
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22166D#FFFFFF#000000##FFFFFF
##22166D1.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6F
Deuteranopia (green-blind)
#00236B
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #22166d;
/* rgb */ color: rgb(34, 22, 109);
/* oklch */ color: oklch(28.7% 0.141 279.0);
Tailwind
colors: {
  custom: {
    50: '#695598',
    500: '#22166d',
    950: '#000000',
  },
}
SCSS
$custom: #22166d;
$custom-light: #695598;
$custom-dark: #000000;
JSON
{
  "hex": "#22166d",
  "rgb": {
    "r": 34,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 248.276,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28694,
    "c": 0.14051,
    "h": 279
  },
  "luminance": 0.02018
}

Semantic roles & 50–950 ramp

primary
#22166D
secondary
#95A33C
accent
#E93ED2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #22166D

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

Preview Lab → · Contrast checker → · Palette generator →

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