#222E98#222E98

#222E98 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.1% C 0.171 H 270.2°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#222E98
RGBrgb(34, 46, 152)
HSLhsl(234, 63%, 36%)
HSVhsv(234, 78%, 60%)
CMYKcmyk(77.6%, 69.7%, 0%, 40.4%)
CIE-LABlab(25.44, 33.92, -58.97)
CIE-LCHlch(25.44, 68.03, 299.91°)
OKLaboklab(37.11% 0.0005 -0.1707)
OKLCHoklch(37.11% 0.171 270.2)
XYZxyz(7.3022, 4.5603, 30.1950)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222E98 #988C22
analogous
#226998 #222E98 #512298
triadic
#222E98 #98222E #2E9822
tetradic
#222E98 #982269 #988C22 #229851
square
#222E98 #982269 #988C22 #229851
split-complementary
#222E98 #985122 #699822
monochromatic
#0C1034 #171F66 #222E98 #2D3DCA #5A67DA

Accessibility & contrast

On white

10.98
#222E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#222E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222E98
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222E98#FFFFFF#000000##FFFFFF
##222E981.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222e98;
/* rgb */ color: rgb(34, 46, 152);
/* oklch */ color: oklch(37.1% 0.171 270.2);
Tailwind
colors: {
  custom: {
    50: '#7167b7',
    500: '#222e98',
    950: '#000000',
  },
}
SCSS
$custom: #222e98;
$custom-light: #7167b7;
$custom-dark: #000000;
JSON
{
  "hex": "#222e98",
  "rgb": {
    "r": 34,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 233.898,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37107,
    "c": 0.17069,
    "h": 270.2
  },
  "luminance": 0.04561
}

Semantic roles & 50–950 ramp

primary
#222E98
secondary
#BEB457
accent
#D641E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #222E98

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

Preview Lab → · Contrast checker → · Palette generator →

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