#22167D#22167D

#22167D is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.161 H 276.3°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#22167D
RGBrgb(34, 22, 125)
HSLhsl(247, 70%, 29%)
HSVhsv(247, 82%, 49%)
CMYKcmyk(72.8%, 82.4%, 0%, 51%)
CIE-LABlab(17.43, 38.72, -55.31)
CIE-LCHlch(17.43, 67.52, 305.00°)
OKLaboklab(30.54% 0.0176 -0.1599)
OKLCHoklch(30.54% 0.161 276.3)
XYZxyz(4.6471, 2.3941, 19.6153)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22167D #717D16
analogous
#163E7D #22167D #56167D
triadic
#22167D #7D2216 #167D22
tetradic
#22167D #7D163E #717D16 #167D56
square
#22167D #7D163E #717D16 #167D56
split-complementary
#22167D #7D5616 #3E7D16
monochromatic
#07051A #140D49 #22167D #301FB1 #4632DB

Accessibility & contrast

On white

14.20
#22167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#22167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22167D
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22167D#FFFFFF#000000##FFFFFF
##22167D1.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00267B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #22167d;
/* rgb */ color: rgb(34, 22, 125);
/* oklch */ color: oklch(30.5% 0.161 276.3);
Tailwind
colors: {
  custom: {
    50: '#6d56a4',
    500: '#22167d',
    950: '#000000',
  },
}
SCSS
$custom: #22167d;
$custom-light: #6d56a4;
$custom-dark: #000000;
JSON
{
  "hex": "#22167d",
  "rgb": {
    "r": 34,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 246.99,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30537,
    "c": 0.16085,
    "h": 276.3
  },
  "luminance": 0.02395
}

Semantic roles & 50–950 ramp

primary
#22167D
secondary
#A4B23D
accent
#ED3BD8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22167D

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

Preview Lab → · Contrast checker → · Palette generator →

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