#22189D#22189D

#22189D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.6% C 0.198 H 272.3°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#22189D
RGBrgb(34, 24, 157)
HSLhsl(245, 73%, 35%)
HSVhsv(245, 85%, 62%)
CMYKcmyk(78.3%, 84.7%, 0%, 38.4%)
CIE-LABlab(21.68, 47.87, -68.26)
CIE-LCHlch(21.68, 83.37, 305.04°)
OKLaboklab(34.61% 0.0081 -0.1975)
OKLCHoklch(34.61% 0.198 272.3)
XYZxyz(7.0701, 3.4269, 32.1806)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22189D #939D18
analogous
#18519D #22189D #64189D
triadic
#22189D #9D2218 #189D22
tetradic
#22189D #9D1851 #939D18 #189D64
square
#22189D #9D1851 #939D18 #189D64
split-complementary
#22189D #9D6418 #519D18
monochromatic
#0B0833 #171068 #22189D #2D20D2 #574CE4

Accessibility & contrast

On white

12.46
#22189D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#22189D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22189D
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22189D#FFFFFF#000000##FFFFFF
##22189D1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA1
Deuteranopia (green-blind)
#002D9B
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #22189d;
/* rgb */ color: rgb(34, 24, 157);
/* oklch */ color: oklch(34.6% 0.198 272.3);
Tailwind
colors: {
  custom: {
    50: '#755abb',
    500: '#22189d',
    950: '#000000',
  },
}
SCSS
$custom: #22189d;
$custom-light: #755abb;
$custom-dark: #000000;
JSON
{
  "hex": "#22189d",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 157
  },
  "hsl": {
    "h": 244.511,
    "s": 73.481,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34607,
    "c": 0.19762,
    "h": 272.3
  },
  "luminance": 0.03428
}

Semantic roles & 50–950 ramp

primary
#22189D
secondary
#BCC54B
accent
#F038E2
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #22189D

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

Preview Lab → · Contrast checker → · Palette generator →

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