#22167E#22167E

#22167E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.7% C 0.162 H 276.1°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#22167E
RGBrgb(34, 22, 126)
HSLhsl(247, 70%, 29%)
HSVhsv(247, 83%, 49%)
CMYKcmyk(73%, 82.5%, 0%, 50.6%)
CIE-LABlab(17.55, 39.05, -55.75)
CIE-LCHlch(17.55, 68.07, 305.01°)
OKLaboklab(30.65% 0.0173 -0.1612)
OKLCHoklch(30.65% 0.162 276.1)
XYZxyz(4.7113, 2.4198, 19.9534)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22167E #727E16
analogous
#163E7E #22167E #56167E
triadic
#22167E #7E2216 #167E22
tetradic
#22167E #7E163E #727E16 #167E56
square
#22167E #7E163E #727E16 #167E56
split-complementary
#22167E #7E5616 #3E7E16
monochromatic
#07051A #140D4A #22167E #301FB2 #4633DB

Accessibility & contrast

On white

14.15
#22167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22167E
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22167E#FFFFFF#000000##FFFFFF
##22167E1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22167e;
/* rgb */ color: rgb(34, 22, 126);
/* oklch */ color: oklch(30.7% 0.162 276.1);
Tailwind
colors: {
  custom: {
    50: '#6d56a5',
    500: '#22167e',
    950: '#000000',
  },
}
SCSS
$custom: #22167e;
$custom-light: #6d56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#22167e",
  "rgb": {
    "r": 34,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 246.923,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30654,
    "c": 0.16209,
    "h": 276.1
  },
  "luminance": 0.0242
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #22167E

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

Preview Lab → · Contrast checker → · Palette generator →

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