#222D98#222D98

#222D98 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.172 H 270.3°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#222D98
RGBrgb(34, 45, 152)
HSLhsl(234, 63%, 36%)
HSVhsv(234, 78%, 60%)
CMYKcmyk(77.6%, 70.4%, 0%, 40.4%)
CIE-LABlab(25.21, 34.56, -59.36)
CIE-LCHlch(25.21, 68.68, 300.21°)
OKLaboklab(36.94% 0.001 -0.1718)
OKLCHoklch(36.94% 0.172 270.3)
XYZxyz(7.2636, 4.4831, 30.1822)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222D98 #988D22
analogous
#226898 #222D98 #522298
triadic
#222D98 #98222D #2D9822
tetradic
#222D98 #982268 #988D22 #229852
square
#222D98 #982268 #988D22 #229852
split-complementary
#222D98 #985222 #689822
monochromatic
#0C0F34 #171E66 #222D98 #2D3CCA #5A66DA

Accessibility & contrast

On white

11.07
#222D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#222D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222D98
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222D98#FFFFFF#000000##FFFFFF
##222D981.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003696
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #222d98;
/* rgb */ color: rgb(34, 45, 152);
/* oklch */ color: oklch(36.9% 0.172 270.3);
Tailwind
colors: {
  custom: {
    50: '#7266b7',
    500: '#222d98',
    950: '#000000',
  },
}
SCSS
$custom: #222d98;
$custom-light: #7266b7;
$custom-dark: #000000;
JSON
{
  "hex": "#222d98",
  "rgb": {
    "r": 34,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 234.407,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36937,
    "c": 0.17182,
    "h": 270.3
  },
  "luminance": 0.04484
}

Semantic roles & 50–950 ramp

primary
#222D98
secondary
#BEB557
accent
#D741E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #222D98

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

Preview Lab → · Contrast checker → · Palette generator →

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