#22288A#22288A

#22288A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.159 H 272.0°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#22288A
RGBrgb(34, 40, 138)
HSLhsl(237, 60%, 34%)
HSVhsv(237, 75%, 54%)
CMYKcmyk(75.4%, 71%, 0%, 45.9%)
CIE-LABlab(22.63, 32.64, -54.94)
CIE-LCHlch(22.63, 63.91, 300.72°)
OKLaboklab(34.64% 0.0054 -0.1589)
OKLCHoklch(34.64% 0.159 272)
XYZxyz(6.0044, 3.6920, 24.4360)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22288A #8A8422
analogous
#225C8A #22288A #50228A
triadic
#22288A #8A2228 #288A22
tetradic
#22288A #8A225C #8A8422 #228A50
square
#22288A #8A225C #8A8422 #228A50
split-complementary
#22288A #8A5022 #5C8A22
monochromatic
#0A0C28 #161A59 #22288A #2E36BB #525AD4

Accessibility & contrast

On white

12.08
#22288A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22288A
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22288A#FFFFFF#000000##FFFFFF
##22288A1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22288a;
/* rgb */ color: rgb(34, 40, 138);
/* oklch */ color: oklch(34.6% 0.159 272.0);
Tailwind
colors: {
  custom: {
    50: '#6e62ad',
    500: '#22288a',
    950: '#000000',
  },
}
SCSS
$custom: #22288a;
$custom-light: #6e62ad;
$custom-dark: #000000;
JSON
{
  "hex": "#22288a",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 236.538,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34645,
    "c": 0.15903,
    "h": 272
  },
  "luminance": 0.03693
}

Semantic roles & 50–950 ramp

primary
#22288A
secondary
#B8B250
accent
#DA44E4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #22288A

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

Preview Lab → · Contrast checker → · Palette generator →

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