#22166C#22166C

#22166C is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.139 H 279.2°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#22166C
RGBrgb(34, 22, 108)
HSLhsl(248, 66%, 25%)
HSVhsv(248, 80%, 42%)
CMYKcmyk(68.5%, 79.6%, 0%, 57.6%)
CIE-LABlab(15.47, 33.09, -47.59)
CIE-LCHlch(15.47, 57.96, 304.81°)
OKLaboklab(28.58% 0.0223 -0.1374)
OKLCHoklch(28.58% 0.139 279.2)
XYZxyz(3.6525, 1.9963, 14.3773)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22166C #606C16
analogous
#16356C #22166C #4D166C
triadic
#22166C #6C2216 #166C22
tetradic
#22166C #6C1635 #606C16 #166C4D
square
#22166C #6C1635 #606C16 #166C4D
split-complementary
#22166C #6C4D16 #356C16
monochromatic
#080519 #120C39 #22166C #32209F #422BD2

Accessibility & contrast

On white

15.01
#22166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#22166C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22166C
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22166C#FFFFFF#000000##FFFFFF
##22166C1.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00236A
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #22166c;
/* rgb */ color: rgb(34, 22, 108);
/* oklch */ color: oklch(28.6% 0.139 279.2);
Tailwind
colors: {
  custom: {
    50: '#695597',
    500: '#22166c',
    950: '#000000',
  },
}
SCSS
$custom: #22166c;
$custom-light: #695597;
$custom-dark: #000000;
JSON
{
  "hex": "#22166c",
  "rgb": {
    "r": 34,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 248.372,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28581,
    "c": 0.1392,
    "h": 279.2
  },
  "luminance": 0.01997
}

Semantic roles & 50–950 ramp

primary
#22166C
secondary
#94A23C
accent
#E93FD1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #22166C

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

Preview Lab → · Contrast checker → · Palette generator →

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