#22198C#22198C

#22198C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.177 H 274.0°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#22198C
RGBrgb(34, 25, 140)
HSLhsl(245, 70%, 32%)
HSVhsv(245, 82%, 55%)
CMYKcmyk(75.7%, 82.1%, 0%, 45.1%)
CIE-LABlab(19.75, 42.05, -60.94)
CIE-LCHlch(19.75, 74.04, 304.61°)
OKLaboklab(32.67% 0.0123 -0.1762)
OKLCHoklch(32.67% 0.177 274)
XYZxyz(5.7394, 2.9282, 25.0686)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22198C #838C19
analogous
#19498C #22198C #5C198C
triadic
#22198C #8C2219 #198C22
tetradic
#22198C #8C1949 #838C19 #198C5C
square
#22198C #8C1949 #838C19 #198C5C
split-complementary
#22198C #8C5C19 #498C19
monochromatic
#090624 #151058 #22198C #2F22C0 #4E42DD

Accessibility & contrast

On white

13.24
#22198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#22198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22198C
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22198C#FFFFFF#000000##FFFFFF
##22198C1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002A8A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #22198c;
/* rgb */ color: rgb(34, 25, 140);
/* oklch */ color: oklch(32.7% 0.177 274.0);
Tailwind
colors: {
  custom: {
    50: '#7059af',
    500: '#22198c',
    950: '#000000',
  },
}
SCSS
$custom: #22198c;
$custom-light: #7059af;
$custom-dark: #000000;
JSON
{
  "hex": "#22198c",
  "rgb": {
    "r": 34,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 244.696,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32674,
    "c": 0.17668,
    "h": 274
  },
  "luminance": 0.02929
}

Semantic roles & 50–950 ramp

primary
#22198C
secondary
#B4BE43
accent
#ED3BDF
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #22198C

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

Preview Lab → · Contrast checker → · Palette generator →

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