#22288D#22288D

#22288D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.163 H 271.8°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#22288D
RGBrgb(34, 40, 141)
HSLhsl(237, 61%, 34%)
HSVhsv(237, 76%, 55%)
CMYKcmyk(75.9%, 71.6%, 0%, 44.7%)
CIE-LABlab(22.93, 33.74, -56.31)
CIE-LCHlch(22.93, 65.64, 300.93°)
OKLaboklab(34.96% 0.0051 -0.1629)
OKLCHoklch(34.96% 0.163 271.8)
XYZxyz(6.2246, 3.7801, 25.5957)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22288D #8D8722
analogous
#225D8D #22288D #52228D
triadic
#22288D #8D2228 #288D22
tetradic
#22288D #8D225D #8D8722 #228D52
square
#22288D #8D225D #8D8722 #228D52
split-complementary
#22288D #8D5222 #5D8D22
monochromatic
#0A0C2A #161A5C #22288D #2E36BE #545BD6

Accessibility & contrast

On white

11.96
#22288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#22288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22288D
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22288D#FFFFFF#000000##FFFFFF
##22288D1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #22288d;
/* rgb */ color: rgb(34, 40, 141);
/* oklch */ color: oklch(35.0% 0.163 271.8);
Tailwind
colors: {
  custom: {
    50: '#6f62af',
    500: '#22288d',
    950: '#000000',
  },
}
SCSS
$custom: #22288d;
$custom-light: #6f62af;
$custom-dark: #000000;
JSON
{
  "hex": "#22288d",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 236.636,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34957,
    "c": 0.16301,
    "h": 271.8
  },
  "luminance": 0.03781
}

Semantic roles & 50–950 ramp

primary
#22288D
secondary
#B9B451
accent
#DB44E4
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #22288D

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

Preview Lab → · Contrast checker → · Palette generator →

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