#22288F#22288F

#22288F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.166 H 271.7°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#22288F
RGBrgb(34, 40, 143)
HSLhsl(237, 62%, 35%)
HSVhsv(237, 76%, 56%)
CMYKcmyk(76.2%, 72%, 0%, 43.9%)
CIE-LABlab(23.14, 34.46, -57.22)
CIE-LCHlch(23.14, 66.79, 301.06°)
OKLaboklab(35.17% 0.0048 -0.1656)
OKLCHoklch(35.17% 0.166 271.7)
XYZxyz(6.3747, 3.8402, 26.3865)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22288F #8F8922
analogous
#225F8F #22288F #52228F
triadic
#22288F #8F2228 #288F22
tetradic
#22288F #8F225F #8F8922 #228F52
square
#22288F #8F225F #8F8922 #228F52
split-complementary
#22288F #8F5222 #5F8F22
monochromatic
#0A0C2C #161A5E #22288F #2E36C0 #555CD7

Accessibility & contrast

On white

11.88
#22288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#22288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22288F
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22288F#FFFFFF#000000##FFFFFF
##22288F1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #22288f;
/* rgb */ color: rgb(34, 40, 143);
/* oklch */ color: oklch(35.2% 0.166 271.7);
Tailwind
colors: {
  custom: {
    50: '#7062b1',
    500: '#22288f',
    950: '#000000',
  },
}
SCSS
$custom: #22288f;
$custom-light: #7062b1;
$custom-dark: #000000;
JSON
{
  "hex": "#22288f",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 236.697,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35166,
    "c": 0.16564,
    "h": 271.7
  },
  "luminance": 0.03841
}

Semantic roles & 50–950 ramp

primary
#22288F
secondary
#BAB552
accent
#DC43E5
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #22288F

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

Preview Lab → · Contrast checker → · Palette generator →

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