#22288B#22288B

#22288B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.160 H 271.9°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#22288B
RGBrgb(34, 40, 139)
HSLhsl(237, 61%, 34%)
HSVhsv(237, 76%, 55%)
CMYKcmyk(75.5%, 71.2%, 0%, 45.5%)
CIE-LABlab(22.73, 33.01, -55.40)
CIE-LCHlch(22.73, 64.49, 300.79°)
OKLaboklab(34.75% 0.0053 -0.1603)
OKLCHoklch(34.75% 0.16 271.9)
XYZxyz(6.0771, 3.7211, 24.8191)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22288B #8B8522
analogous
#225D8B #22288B #51228B
triadic
#22288B #8B2228 #288B22
tetradic
#22288B #8B225D #8B8522 #228B51
square
#22288B #8B225D #8B8522 #228B51
split-complementary
#22288B #8B5122 #5D8B22
monochromatic
#0A0C29 #161A5A #22288B #2E36BC #535AD5

Accessibility & contrast

On white

12.04
#22288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#22288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22288B
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22288B#FFFFFF#000000##FFFFFF
##22288B1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #22288b;
/* rgb */ color: rgb(34, 40, 139);
/* oklch */ color: oklch(34.7% 0.160 271.9);
Tailwind
colors: {
  custom: {
    50: '#6f62ae',
    500: '#22288b',
    950: '#000000',
  },
}
SCSS
$custom: #22288b;
$custom-light: #6f62ae;
$custom-dark: #000000;
JSON
{
  "hex": "#22288b",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 236.571,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34749,
    "c": 0.16037,
    "h": 271.9
  },
  "luminance": 0.03722
}

Semantic roles & 50–950 ramp

primary
#22288B
secondary
#B8B350
accent
#DB44E4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #22288B

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

Preview Lab → · Contrast checker → · Palette generator →

#22288B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva