#22186C#22186C

#22186C is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.9% C 0.137 H 278.8°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#22186C
RGBrgb(34, 24, 108)
HSLhsl(247, 64%, 26%)
HSVhsv(247, 78%, 42%)
CMYKcmyk(68.5%, 77.8%, 0%, 57.6%)
CIE-LABlab(15.88, 31.92, -46.91)
CIE-LCHlch(15.88, 56.74, 304.24°)
OKLaboklab(28.87% 0.021 -0.1354)
OKLCHoklch(28.87% 0.137 278.8)
XYZxyz(3.6922, 2.0758, 14.3905)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22186C #626C18
analogous
#18386C #22186C #4C186C
triadic
#22186C #6C2218 #186C22
tetradic
#22186C #6C1838 #626C18 #186C4C
square
#22186C #6C1838 #626C18 #186C4C
split-complementary
#22186C #6C4C18 #386C18
monochromatic
#080619 #120D3A #22186C #32239E #422ED0

Accessibility & contrast

On white

14.84
#22186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#22186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22186C
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22186C#FFFFFF#000000##FFFFFF
##22186C1.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00246A
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #22186c;
/* rgb */ color: rgb(34, 24, 108);
/* oklch */ color: oklch(28.9% 0.137 278.8);
Tailwind
colors: {
  custom: {
    50: '#695697',
    500: '#22186c',
    950: '#000000',
  },
}
SCSS
$custom: #22186c;
$custom-light: #695697;
$custom-dark: #000000;
JSON
{
  "hex": "#22186c",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 247.143,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28872,
    "c": 0.13706,
    "h": 278.8
  },
  "luminance": 0.02076
}

Semantic roles & 50–950 ramp

primary
#22186C
secondary
#96A23E
accent
#E741D3
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #22186C

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

Preview Lab → · Contrast checker → · Palette generator →

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