#22288C#22288C

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

Color values

HEX#22288C
RGBrgb(34, 40, 140)
HSLhsl(237, 61%, 34%)
HSVhsv(237, 76%, 55%)
CMYKcmyk(75.7%, 71.4%, 0%, 45.1%)
CIE-LABlab(22.83, 33.37, -55.86)
CIE-LCHlch(22.83, 65.07, 300.86°)
OKLaboklab(34.85% 0.0052 -0.1616)
OKLCHoklch(34.85% 0.162 271.8)
XYZxyz(6.1505, 3.7505, 25.2056)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22288C #8C8622
analogous
#225D8C #22288C #51228C
triadic
#22288C #8C2228 #288C22
tetradic
#22288C #8C225D #8C8622 #228C51
square
#22288C #8C225D #8C8622 #228C51
split-complementary
#22288C #8C5122 #5D8C22
monochromatic
#0A0C2A #161A5B #22288C #2E36BD #535BD5

Accessibility & contrast

On white

12.00
#22288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#22288C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22288C
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22288C#FFFFFF#000000##FFFFFF
##22288C1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #22288c;
/* rgb */ color: rgb(34, 40, 140);
/* oklch */ color: oklch(34.9% 0.162 271.8);
Tailwind
colors: {
  custom: {
    50: '#6f62af',
    500: '#22288c',
    950: '#000000',
  },
}
SCSS
$custom: #22288c;
$custom-light: #6f62af;
$custom-dark: #000000;
JSON
{
  "hex": "#22288c",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 236.604,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34853,
    "c": 0.16169,
    "h": 271.8
  },
  "luminance": 0.03751
}

Semantic roles & 50–950 ramp

primary
#22288C
secondary
#B9B351
accent
#DB44E4
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #22288C

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

Preview Lab → · Contrast checker → · Palette generator →

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