#222A98#222A98

#222A98 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.4% C 0.175 H 270.8°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#222A98
RGBrgb(34, 42, 152)
HSLhsl(236, 63%, 36%)
HSVhsv(236, 78%, 60%)
CMYKcmyk(77.6%, 72.4%, 0%, 40.4%)
CIE-LABlab(24.52, 36.45, -60.49)
CIE-LCHlch(24.52, 70.62, 301.07°)
OKLaboklab(36.44% 0.0025 -0.1751)
OKLCHoklch(36.44% 0.175 270.8)
XYZxyz(7.1532, 4.2622, 30.1454)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222A98 #989022
analogous
#226598 #222A98 #552298
triadic
#222A98 #98222A #2A9822
tetradic
#222A98 #982265 #989022 #229855
square
#222A98 #982265 #989022 #229855
split-complementary
#222A98 #985522 #659822
monochromatic
#0C0E34 #171C66 #222A98 #2D38CA #5A63DA

Accessibility & contrast

On white

11.34
#222A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#222A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222A98
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222A98#FFFFFF#000000##FFFFFF
##222A981.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222a98;
/* rgb */ color: rgb(34, 42, 152);
/* oklch */ color: oklch(36.4% 0.175 270.8);
Tailwind
colors: {
  custom: {
    50: '#7264b7',
    500: '#222a98',
    950: '#000000',
  },
}
SCSS
$custom: #222a98;
$custom-light: #7264b7;
$custom-dark: #000000;
JSON
{
  "hex": "#222a98",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 235.932,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36441,
    "c": 0.17514,
    "h": 270.8
  },
  "luminance": 0.04263
}

Semantic roles & 50–950 ramp

primary
#222A98
secondary
#BEB757
accent
#DB41E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #222A98

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

Preview Lab → · Contrast checker → · Palette generator →

#222A98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva