#22198B#22198B

#22198B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.175 H 274.1°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#22198B
RGBrgb(34, 25, 139)
HSLhsl(245, 70%, 32%)
HSVhsv(245, 82%, 55%)
CMYKcmyk(75.5%, 82%, 0%, 45.5%)
CIE-LABlab(19.63, 41.73, -60.51)
CIE-LCHlch(19.63, 73.50, 304.59°)
OKLaboklab(32.56% 0.0125 -0.175)
OKLCHoklch(32.56% 0.175 274.1)
XYZxyz(5.6660, 2.8988, 24.6820)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22198B #828B19
analogous
#19498B #22198B #5B198B
triadic
#22198B #8B2219 #198B22
tetradic
#22198B #8B1949 #828B19 #198B5B
square
#22198B #8B1949 #828B19 #198B5B
split-complementary
#22198B #8B5B19 #498B19
monochromatic
#090623 #151057 #22198B #2F22BF #4E41DD

Accessibility & contrast

On white

13.29
#22198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#22198B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22198B
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22198B#FFFFFF#000000##FFFFFF
##22198B1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358E
Deuteranopia (green-blind)
#002A89
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #22198b;
/* rgb */ color: rgb(34, 25, 139);
/* oklch */ color: oklch(32.6% 0.175 274.1);
Tailwind
colors: {
  custom: {
    50: '#7059ae',
    500: '#22198b',
    950: '#000000',
  },
}
SCSS
$custom: #22198b;
$custom-light: #7059ae;
$custom-dark: #000000;
JSON
{
  "hex": "#22198b",
  "rgb": {
    "r": 34,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 244.737,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32556,
    "c": 0.17546,
    "h": 274.1
  },
  "luminance": 0.02899
}

Semantic roles & 50–950 ramp

primary
#22198B
secondary
#B4BE42
accent
#EC3BDE
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #22198B

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

Preview Lab → · Contrast checker → · Palette generator →

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