#22228A#22228A

#22228A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.166 H 273.0°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#22228A
RGBrgb(34, 34, 138)
HSLhsl(240, 60%, 34%)
HSVhsv(240, 75%, 54%)
CMYKcmyk(75.4%, 75.4%, 0%, 45.9%)
CIE-LABlab(21.28, 36.37, -57.17)
CIE-LCHlch(21.28, 67.76, 302.47°)
OKLaboklab(33.68% 0.0088 -0.1654)
OKLCHoklch(33.68% 0.166 273)
XYZxyz(5.8176, 3.3185, 24.3738)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22228A #8A8A22
analogous
#22568A #22228A #56228A
triadic
#22228A #8A2222 #228A22
tetradic
#22228A #8A2256 #8A8A22 #228A56
square
#22228A #8A2256 #8A8A22 #228A56
split-complementary
#22228A #8A5622 #568A22
monochromatic
#0A0A28 #161659 #22228A #2E2EBB #5252D4

Accessibility & contrast

On white

12.62
#22228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#22228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22228A
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22228A#FFFFFF#000000##FFFFFF
##22228A1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #22228a;
/* rgb */ color: rgb(34, 34, 138);
/* oklch */ color: oklch(33.7% 0.166 273.0);
Tailwind
colors: {
  custom: {
    50: '#6f5ead',
    500: '#22228a',
    950: '#000000',
  },
}
SCSS
$custom: #22228a;
$custom-light: #6f5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#22228a",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 240,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.33678,
    "c": 0.16563,
    "h": 273
  },
  "luminance": 0.03319
}

Semantic roles & 50–950 ramp

primary
#22228A
secondary
#B8B850
accent
#E444E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #22228A

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

Preview Lab → · Contrast checker → · Palette generator →

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