#22189B#22189B

#22189B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.4% C 0.195 H 272.5°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#22189B
RGBrgb(34, 24, 155)
HSLhsl(245, 73%, 35%)
HSVhsv(245, 85%, 61%)
CMYKcmyk(78.1%, 84.5%, 0%, 39.2%)
CIE-LABlab(21.43, 47.26, -67.45)
CIE-LCHlch(21.43, 82.36, 305.02°)
OKLaboklab(34.36% 0.0086 -0.1951)
OKLCHoklch(34.36% 0.195 272.5)
XYZxyz(6.9007, 3.3592, 31.2887)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22189B #919B18
analogous
#18509B #22189B #63189B
triadic
#22189B #9B2218 #189B22
tetradic
#22189B #9B1850 #919B18 #189B63
square
#22189B #9B1850 #919B18 #189B63
split-complementary
#22189B #9B6318 #509B18
monochromatic
#0B0831 #161066 #22189B #2E20D0 #564AE3

Accessibility & contrast

On white

12.56
#22189B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#22189B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22189B
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22189B#FFFFFF#000000##FFFFFF
##22189B1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00399F
Deuteranopia (green-blind)
#002D99
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #22189b;
/* rgb */ color: rgb(34, 24, 155);
/* oklch */ color: oklch(34.4% 0.195 272.5);
Tailwind
colors: {
  custom: {
    50: '#745aba',
    500: '#22189b',
    950: '#000000',
  },
}
SCSS
$custom: #22189b;
$custom-light: #745aba;
$custom-dark: #000000;
JSON
{
  "hex": "#22189b",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 155
  },
  "hsl": {
    "h": 244.58,
    "s": 73.184,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34364,
    "c": 0.1953,
    "h": 272.5
  },
  "luminance": 0.0336
}

Semantic roles & 50–950 ramp

primary
#22189B
secondary
#BBC54A
accent
#F038E2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #22189B

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

Preview Lab → · Contrast checker → · Palette generator →

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