#22167A#22167A

#22167A is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.157 H 276.7°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#22167A
RGBrgb(34, 22, 122)
HSLhsl(247, 69%, 28%)
HSVhsv(247, 82%, 48%)
CMYKcmyk(72.1%, 82%, 0%, 52.2%)
CIE-LABlab(17.08, 37.75, -53.98)
CIE-LCHlch(17.08, 65.87, 304.96°)
OKLaboklab(30.19% 0.0185 -0.156)
OKLCHoklch(30.19% 0.157 276.7)
XYZxyz(4.4583, 2.3186, 18.6212)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22167A #6E7A16
analogous
#163C7A #22167A #54167A
triadic
#22167A #7A2216 #167A22
tetradic
#22167A #7A163C #6E7A16 #167A54
square
#22167A #7A163C #6E7A16 #167A54
split-complementary
#22167A #7A5416 #3C7A16
monochromatic
#07051A #140D46 #22167A #301FAE #4531DA

Accessibility & contrast

On white

14.35
#22167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#22167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22167A
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22167A#FFFFFF#000000##FFFFFF
##22167A1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002678
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #22167a;
/* rgb */ color: rgb(34, 22, 122);
/* oklch */ color: oklch(30.2% 0.157 276.7);
Tailwind
colors: {
  custom: {
    50: '#6c56a2',
    500: '#22167a',
    950: '#000000',
  },
}
SCSS
$custom: #22167a;
$custom-light: #6c56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#22167a",
  "rgb": {
    "r": 34,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 247.2,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30185,
    "c": 0.15711,
    "h": 276.7
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

primary
#22167A
secondary
#A1AF3D
accent
#EC3CD7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22167A

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

Preview Lab → · Contrast checker → · Palette generator →

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