#22186B#22186B

#22186B is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.8% C 0.136 H 279.0°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#22186B
RGBrgb(34, 24, 107)
HSLhsl(247, 63%, 26%)
HSVhsv(247, 78%, 42%)
CMYKcmyk(68.2%, 77.6%, 0%, 58%)
CIE-LABlab(15.77, 31.58, -46.44)
CIE-LCHlch(15.77, 56.16, 304.22°)
OKLaboklab(28.76% 0.0212 -0.134)
OKLCHoklch(28.76% 0.136 279)
XYZxyz(3.6393, 2.0546, 14.1119)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22186B #616B18
analogous
#18376B #22186B #4B186B
triadic
#22186B #6B2218 #186B22
tetradic
#22186B #6B1837 #616B18 #186B4B
square
#22186B #6B1837 #616B18 #186B4B
split-complementary
#22186B #6B4B18 #376B18
monochromatic
#080619 #120D39 #22186B #32239D #422ECF

Accessibility & contrast

On white

14.88
#22186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22186B
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22186B#FFFFFF#000000##FFFFFF
##22186B1.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22186b;
/* rgb */ color: rgb(34, 24, 107);
/* oklch */ color: oklch(28.8% 0.136 279.0);
Tailwind
colors: {
  custom: {
    50: '#685696',
    500: '#22186b',
    950: '#000000',
  },
}
SCSS
$custom: #22186b;
$custom-light: #685696;
$custom-dark: #000000;
JSON
{
  "hex": "#22186b",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 247.229,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28762,
    "c": 0.13572,
    "h": 279
  },
  "luminance": 0.02055
}

Semantic roles & 50–950 ramp

primary
#22186B
secondary
#95A13E
accent
#E641D3
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #22186B

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

Preview Lab → · Contrast checker → · Palette generator →

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