#22166B#22166B

#22166B is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.5% C 0.138 H 279.4°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#22166B
RGBrgb(34, 22, 107)
HSLhsl(248, 66%, 25%)
HSVhsv(248, 79%, 42%)
CMYKcmyk(68.2%, 79.4%, 0%, 58%)
CIE-LABlab(15.36, 32.75, -47.12)
CIE-LCHlch(15.36, 57.39, 304.80°)
OKLaboklab(28.47% 0.0226 -0.136)
OKLCHoklch(28.47% 0.138 279.4)
XYZxyz(3.5996, 1.9751, 14.0986)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22166B #5F6B16
analogous
#16346B #22166B #4D166B
triadic
#22166B #6B2216 #166B22
tetradic
#22166B #6B1634 #5F6B16 #166B4D
square
#22166B #6B1634 #5F6B16 #166B4D
split-complementary
#22166B #6B4D16 #346B16
monochromatic
#080519 #120C38 #22166B #32209E #422BD1

Accessibility & contrast

On white

15.05
#22166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22166B
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22166B#FFFFFF#000000##FFFFFF
##22166B1.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#002369
Tritanopia (blue-blind)
#002F3F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #22166b;
/* rgb */ color: rgb(34, 22, 107);
/* oklch */ color: oklch(28.5% 0.138 279.4);
Tailwind
colors: {
  custom: {
    50: '#695596',
    500: '#22166b',
    950: '#000000',
  },
}
SCSS
$custom: #22166b;
$custom-light: #695596;
$custom-dark: #000000;
JSON
{
  "hex": "#22166b",
  "rgb": {
    "r": 34,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 248.471,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.2847,
    "c": 0.13789,
    "h": 279.4
  },
  "luminance": 0.01975
}

Semantic roles & 50–950 ramp

primary
#22166B
secondary
#93A13B
accent
#E93FD1
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #22166B

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

Preview Lab → · Contrast checker → · Palette generator →

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