#222698#222698

#222698 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.179 H 271.4°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#222698
RGBrgb(34, 38, 152)
HSLhsl(238, 63%, 36%)
HSVhsv(238, 78%, 60%)
CMYKcmyk(77.6%, 75%, 0%, 40.4%)
CIE-LABlab(23.65, 38.88, -61.93)
CIE-LCHlch(23.65, 73.12, 302.12°)
OKLaboklab(35.82% 0.0044 -0.1793)
OKLCHoklch(35.82% 0.179 271.4)
XYZxyz(7.0184, 3.9925, 30.1004)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222698 #989422
analogous
#226198 #222698 #592298
triadic
#222698 #982226 #269822
tetradic
#222698 #982261 #989422 #229859
square
#222698 #982261 #989422 #229859
split-complementary
#222698 #985922 #619822
monochromatic
#0C0D34 #171966 #222698 #2D33CA #5A5FDA

Accessibility & contrast

On white

11.68
#222698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#222698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222698
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222698#FFFFFF#000000##FFFFFF
##2226981.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.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: #222698;
/* rgb */ color: rgb(34, 38, 152);
/* oklch */ color: oklch(35.8% 0.179 271.4);
Tailwind
colors: {
  custom: {
    50: '#7262b8',
    500: '#222698',
    950: '#000000',
  },
}
SCSS
$custom: #222698;
$custom-light: #7262b8;
$custom-dark: #000000;
JSON
{
  "hex": "#222698",
  "rgb": {
    "r": 34,
    "g": 38,
    "b": 152
  },
  "hsl": {
    "h": 237.966,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35817,
    "c": 0.17935,
    "h": 271.4
  },
  "luminance": 0.03993
}

Semantic roles & 50–950 ramp

primary
#222698
secondary
#BEBB57
accent
#E141E6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #222698

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

Preview Lab → · Contrast checker → · Palette generator →

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