#22186A#22186A

#22186A is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.7% C 0.134 H 279.2°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#22186A
RGBrgb(34, 24, 106)
HSLhsl(247, 63%, 25%)
HSVhsv(247, 77%, 42%)
CMYKcmyk(67.9%, 77.4%, 0%, 58.4%)
CIE-LABlab(15.66, 31.23, -45.96)
CIE-LCHlch(15.66, 55.57, 304.20°)
OKLaboklab(28.65% 0.0215 -0.1327)
OKLCHoklch(28.65% 0.134 279.2)
XYZxyz(3.5870, 2.0337, 13.8364)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22186A #606A18
analogous
#18376A #22186A #4B186A
triadic
#22186A #6A2218 #186A22
tetradic
#22186A #6A1837 #606A18 #186A4B
square
#22186A #6A1837 #606A18 #186A4B
split-complementary
#22186A #6A4B18 #376A18
monochromatic
#080619 #120D38 #22186A #32239C #422FCE

Accessibility & contrast

On white

14.93
#22186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#22186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22186A
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22186A#FFFFFF#000000##FFFFFF
##22186A1.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002469
Tritanopia (blue-blind)
#002F3F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #22186a;
/* rgb */ color: rgb(34, 24, 106);
/* oklch */ color: oklch(28.7% 0.134 279.2);
Tailwind
colors: {
  custom: {
    50: '#685696',
    500: '#22186a',
    950: '#000000',
  },
}
SCSS
$custom: #22186a;
$custom-light: #685696;
$custom-dark: #000000;
JSON
{
  "hex": "#22186a",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 247.317,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28653,
    "c": 0.13438,
    "h": 279.2
  },
  "luminance": 0.02034
}

Semantic roles & 50–950 ramp

primary
#22186A
secondary
#94A03E
accent
#E642D2
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #22186A

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

Preview Lab → · Contrast checker → · Palette generator →

#22186A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva