#22186D#22186D

#22186D is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.138 H 278.6°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#22186D
RGBrgb(34, 24, 109)
HSLhsl(247, 64%, 26%)
HSVhsv(247, 78%, 43%)
CMYKcmyk(68.8%, 78%, 0%, 57.3%)
CIE-LABlab(15.99, 32.27, -47.38)
CIE-LCHlch(15.99, 57.33, 304.26°)
OKLaboklab(28.98% 0.0207 -0.1368)
OKLCHoklch(28.98% 0.138 278.6)
XYZxyz(3.7458, 2.0972, 14.6724)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22186D #636D18
analogous
#18386D #22186D #4C186D
triadic
#22186D #6D2218 #186D22
tetradic
#22186D #6D1838 #636D18 #186D4C
square
#22186D #6D1838 #636D18 #186D4C
split-complementary
#22186D #6D4C18 #386D18
monochromatic
#080619 #120D3B #22186D #32239F #412ED1

Accessibility & contrast

On white

14.79
#22186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22186D
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22186D#FFFFFF#000000##FFFFFF
##22186D1.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6F
Deuteranopia (green-blind)
#00246B
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #22186d;
/* rgb */ color: rgb(34, 24, 109);
/* oklch */ color: oklch(29.0% 0.138 278.6);
Tailwind
colors: {
  custom: {
    50: '#695698',
    500: '#22186d',
    950: '#000000',
  },
}
SCSS
$custom: #22186d;
$custom-light: #695698;
$custom-dark: #000000;
JSON
{
  "hex": "#22186d",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 247.059,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28982,
    "c": 0.13838,
    "h": 278.6
  },
  "luminance": 0.02097
}

Semantic roles & 50–950 ramp

primary
#22186D
secondary
#97A33E
accent
#E741D3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #22186D

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

Preview Lab → · Contrast checker → · Palette generator →

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