#222798#222798

#222798 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.178 H 271.3°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#222798
RGBrgb(34, 39, 152)
HSLhsl(237, 63%, 36%)
HSVhsv(237, 78%, 60%)
CMYKcmyk(77.6%, 74.3%, 0%, 40.4%)
CIE-LABlab(23.86, 38.28, -61.58)
CIE-LCHlch(23.86, 72.51, 301.87°)
OKLaboklab(35.97% 0.004 -0.1783)
OKLCHoklch(35.97% 0.178 271.3)
XYZxyz(7.0508, 4.0574, 30.1112)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222798 #989322
analogous
#226298 #222798 #582298
triadic
#222798 #982227 #279822
tetradic
#222798 #982262 #989322 #229858
square
#222798 #982262 #989322 #229858
split-complementary
#222798 #985822 #629822
monochromatic
#0C0D34 #171A66 #222798 #2D34CA #5A60DA

Accessibility & contrast

On white

11.59
#222798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#222798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222798
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222798#FFFFFF#000000##FFFFFF
##2227981.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #222798;
/* rgb */ color: rgb(34, 39, 152);
/* oklch */ color: oklch(36.0% 0.178 271.3);
Tailwind
colors: {
  custom: {
    50: '#7262b7',
    500: '#222798',
    950: '#000000',
  },
}
SCSS
$custom: #222798;
$custom-light: #7262b7;
$custom-dark: #000000;
JSON
{
  "hex": "#222798",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 237.458,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35969,
    "c": 0.17832,
    "h": 271.3
  },
  "luminance": 0.04058
}

Semantic roles & 50–950 ramp

primary
#222798
secondary
#BEBA57
accent
#DF41E6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #222798

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

Preview Lab → · Contrast checker → · Palette generator →

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