#22167B#22167B

#22167B is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.158 H 276.6°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#22167B
RGBrgb(34, 22, 123)
HSLhsl(247, 70%, 28%)
HSVhsv(247, 82%, 48%)
CMYKcmyk(72.4%, 82.1%, 0%, 51.8%)
CIE-LABlab(17.20, 38.07, -54.43)
CIE-LCHlch(17.20, 66.42, 304.97°)
OKLaboklab(30.3% 0.0182 -0.1573)
OKLCHoklch(30.3% 0.158 276.6)
XYZxyz(4.5206, 2.3435, 18.9492)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22167B #6F7B16
analogous
#163C7B #22167B #54167B
triadic
#22167B #7B2216 #167B22
tetradic
#22167B #7B163C #6F7B16 #167B54
square
#22167B #7B163C #6F7B16 #167B54
split-complementary
#22167B #7B5416 #3C7B16
monochromatic
#07051A #140D47 #22167B #301FAF #4531DA

Accessibility & contrast

On white

14.30
#22167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#22167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22167B
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22167B#FFFFFF#000000##FFFFFF
##22167B1.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002679
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #22167b;
/* rgb */ color: rgb(34, 22, 123);
/* oklch */ color: oklch(30.3% 0.158 276.6);
Tailwind
colors: {
  custom: {
    50: '#6c56a2',
    500: '#22167b',
    950: '#000000',
  },
}
SCSS
$custom: #22167b;
$custom-light: #6c56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#22167b",
  "rgb": {
    "r": 34,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 247.129,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30302,
    "c": 0.15836,
    "h": 276.6
  },
  "luminance": 0.02344
}

Semantic roles & 50–950 ramp

primary
#22167B
secondary
#A2B03D
accent
#EC3BD7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22167B

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

Preview Lab → · Contrast checker → · Palette generator →

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