#222598#222598

#222598 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.180 H 271.5°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#222598
RGBrgb(34, 37, 152)
HSLhsl(238, 63%, 36%)
HSVhsv(238, 78%, 60%)
CMYKcmyk(77.6%, 75.7%, 0%, 40.4%)
CIE-LABlab(23.44, 39.46, -62.28)
CIE-LCHlch(23.44, 73.73, 302.36°)
OKLaboklab(35.67% 0.0048 -0.1803)
OKLCHoklch(35.67% 0.18 271.5)
XYZxyz(6.9868, 3.9295, 30.0899)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222598 #989522
analogous
#226098 #222598 #5A2298
triadic
#222598 #982225 #259822
tetradic
#222598 #982260 #989522 #22985A
square
#222598 #982260 #989522 #22985A
split-complementary
#222598 #985A22 #609822
monochromatic
#0C0D34 #171966 #222598 #2D31CA #5A5EDA

Accessibility & contrast

On white

11.76
#222598 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#222598 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222598
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222598#FFFFFF#000000##FFFFFF
##2225981.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003296
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #222598;
/* rgb */ color: rgb(34, 37, 152);
/* oklch */ color: oklch(35.7% 0.180 271.5);
Tailwind
colors: {
  custom: {
    50: '#7261b8',
    500: '#222598',
    950: '#000000',
  },
}
SCSS
$custom: #222598;
$custom-light: #7261b8;
$custom-dark: #000000;
JSON
{
  "hex": "#222598",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 152
  },
  "hsl": {
    "h": 238.475,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35667,
    "c": 0.18036,
    "h": 271.5
  },
  "luminance": 0.0393
}

Semantic roles & 50–950 ramp

primary
#222598
secondary
#BEBC57
accent
#E241E6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #222598

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

Preview Lab → · Contrast checker → · Palette generator →

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