#222998#222998

#222998 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.176 H 271.0°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#222998
RGBrgb(34, 41, 152)
HSLhsl(236, 63%, 36%)
HSVhsv(236, 78%, 60%)
CMYKcmyk(77.6%, 73%, 0%, 40.4%)
CIE-LABlab(24.30, 37.06, -60.86)
CIE-LCHlch(24.30, 71.25, 301.34°)
OKLaboklab(36.28% 0.003 -0.1762)
OKLCHoklch(36.28% 0.176 271)
XYZxyz(7.1182, 4.1922, 30.1337)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222998 #989122
analogous
#226498 #222998 #562298
triadic
#222998 #982229 #299822
tetradic
#222998 #982264 #989122 #229856
square
#222998 #982264 #989122 #229856
split-complementary
#222998 #985622 #649822
monochromatic
#0C0E34 #171C66 #222998 #2D36CA #5A62DA

Accessibility & contrast

On white

11.42
#222998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#222998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222998
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222998#FFFFFF#000000##FFFFFF
##2229981.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #222998;
/* rgb */ color: rgb(34, 41, 152);
/* oklch */ color: oklch(36.3% 0.176 271.0);
Tailwind
colors: {
  custom: {
    50: '#7263b7',
    500: '#222998',
    950: '#000000',
  },
}
SCSS
$custom: #222998;
$custom-light: #7263b7;
$custom-dark: #000000;
JSON
{
  "hex": "#222998",
  "rgb": {
    "r": 34,
    "g": 41,
    "b": 152
  },
  "hsl": {
    "h": 236.441,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36281,
    "c": 0.17622,
    "h": 271
  },
  "luminance": 0.04193
}

Semantic roles & 50–950 ramp

primary
#222998
secondary
#BEB857
accent
#DD41E6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #222998

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

Preview Lab → · Contrast checker → · Palette generator →

#222998 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva