#22166F#22166F

#22166F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.9% C 0.143 H 278.6°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#22166F
RGBrgb(34, 22, 111)
HSLhsl(248, 67%, 26%)
HSVhsv(248, 80%, 44%)
CMYKcmyk(69.4%, 80.2%, 0%, 56.5%)
CIE-LABlab(15.81, 34.10, -48.99)
CIE-LCHlch(15.81, 59.69, 304.84°)
OKLaboklab(28.92% 0.0215 -0.1415)
OKLCHoklch(28.92% 0.143 278.6)
XYZxyz(3.8149, 2.0613, 15.2327)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22166F #636F16
analogous
#16366F #22166F #4E166F
triadic
#22166F #6F2216 #166F22
tetradic
#22166F #6F1636 #636F16 #166F4E
square
#22166F #6F1636 #636F16 #166F4E
split-complementary
#22166F #6F4E16 #366F16
monochromatic
#08051A #120C3C #22166F #3220A2 #412BD5

Accessibility & contrast

On white

14.87
#22166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#22166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22166F
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22166F#FFFFFF#000000##FFFFFF
##22166F1.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00246D
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #22166f;
/* rgb */ color: rgb(34, 22, 111);
/* oklch */ color: oklch(28.9% 0.143 278.6);
Tailwind
colors: {
  custom: {
    50: '#695599',
    500: '#22166f',
    950: '#000000',
  },
}
SCSS
$custom: #22166f;
$custom-light: #695599;
$custom-dark: #000000;
JSON
{
  "hex": "#22166f",
  "rgb": {
    "r": 34,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 248.09,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28919,
    "c": 0.14311,
    "h": 278.6
  },
  "luminance": 0.02062
}

Semantic roles & 50–950 ramp

primary
#22166F
secondary
#97A53C
accent
#EA3ED3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #22166F

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

Preview Lab → · Contrast checker → · Palette generator →

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