#22168F#22168F

#22168F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.183 H 273.9°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#22168F
RGBrgb(34, 22, 143)
HSLhsl(246, 73%, 32%)
HSVhsv(246, 85%, 56%)
CMYKcmyk(76.2%, 84.6%, 0%, 43.9%)
CIE-LABlab(19.62, 44.45, -63.02)
CIE-LCHlch(19.62, 77.12, 305.20°)
OKLaboklab(32.69% 0.0124 -0.1822)
OKLCHoklch(32.69% 0.183 273.9)
XYZxyz(5.9029, 2.8965, 26.2293)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22168F #838F16
analogous
#16478F #22168F #5E168F
triadic
#22168F #8F2216 #168F22
tetradic
#22168F #8F1647 #838F16 #168F5E
square
#22168F #8F1647 #838F16 #168F5E
split-complementary
#22168F #8F5E16 #478F16
monochromatic
#090625 #150E5A #22168F #2F1EC4 #4E3EE1

Accessibility & contrast

On white

13.30
#22168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#22168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22168F
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22168F#FFFFFF#000000##FFFFFF
##22168F1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22168f;
/* rgb */ color: rgb(34, 22, 143);
/* oklch */ color: oklch(32.7% 0.183 273.9);
Tailwind
colors: {
  custom: {
    50: '#7158b1',
    500: '#22168f',
    950: '#000000',
  },
}
SCSS
$custom: #22168f;
$custom-light: #7158b1;
$custom-dark: #000000;
JSON
{
  "hex": "#22168f",
  "rgb": {
    "r": 34,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 245.95,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32691,
    "c": 0.18267,
    "h": 273.9
  },
  "luminance": 0.02897
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #22168F

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

Preview Lab → · Contrast checker → · Palette generator →

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