#22168E#22168E

#22168E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.181 H 274.0°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#22168E
RGBrgb(34, 22, 142)
HSLhsl(246, 73%, 32%)
HSVhsv(246, 85%, 56%)
CMYKcmyk(76.1%, 84.5%, 0%, 44.3%)
CIE-LABlab(19.50, 44.14, -62.60)
CIE-LCHlch(19.50, 76.60, 305.19°)
OKLaboklab(32.57% 0.0127 -0.181)
OKLCHoklch(32.57% 0.181 274)
XYZxyz(5.8275, 2.8663, 25.8321)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22168E #828E16
analogous
#16468E #22168E #5E168E
triadic
#22168E #8E2216 #168E22
tetradic
#22168E #8E1646 #828E16 #168E5E
square
#22168E #8E1646 #828E16 #168E5E
split-complementary
#22168E #8E5E16 #468E16
monochromatic
#090624 #150E59 #22168E #2F1EC3 #4E3DE1

Accessibility & contrast

On white

13.35
#22168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#22168E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22168E
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22168E#FFFFFF#000000##FFFFFF
##22168E1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#002A8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #22168e;
/* rgb */ color: rgb(34, 22, 142);
/* oklch */ color: oklch(32.6% 0.181 274.0);
Tailwind
colors: {
  custom: {
    50: '#7158b0',
    500: '#22168e',
    950: '#000000',
  },
}
SCSS
$custom: #22168e;
$custom-light: #7158b0;
$custom-dark: #000000;
JSON
{
  "hex": "#22168e",
  "rgb": {
    "r": 34,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 246,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32569,
    "c": 0.18149,
    "h": 274
  },
  "luminance": 0.02867
}

Semantic roles & 50–950 ramp

primary
#22168E
secondary
#B4C13F
accent
#F038DD
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #22168E

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

Preview Lab → · Contrast checker → · Palette generator →

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