#22228D#22228D

#22228D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.169 H 272.8°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#22228D
RGBrgb(34, 34, 141)
HSLhsl(240, 61%, 34%)
HSVhsv(240, 76%, 55%)
CMYKcmyk(75.9%, 75.9%, 0%, 44.7%)
CIE-LABlab(21.60, 37.42, -58.50)
CIE-LCHlch(21.60, 69.44, 302.60°)
OKLaboklab(34.01% 0.0082 -0.1693)
OKLCHoklch(34.01% 0.169 272.8)
XYZxyz(6.0378, 3.4066, 25.5335)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22228D #8D8D22
analogous
#22588D #22228D #58228D
triadic
#22228D #8D2222 #228D22
tetradic
#22228D #8D2258 #8D8D22 #228D58
square
#22228D #8D2258 #8D8D22 #228D58
split-complementary
#22228D #8D5822 #588D22
monochromatic
#0A0A2A #16165C #22228D #2E2EBE #5454D6

Accessibility & contrast

On white

12.49
#22228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#22228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22228D
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22228D#FFFFFF#000000##FFFFFF
##22228D1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #22228d;
/* rgb */ color: rgb(34, 34, 141);
/* oklch */ color: oklch(34.0% 0.169 272.8);
Tailwind
colors: {
  custom: {
    50: '#705eaf',
    500: '#22228d',
    950: '#000000',
  },
}
SCSS
$custom: #22228d;
$custom-light: #705eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#22228d",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 240,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34008,
    "c": 0.16948,
    "h": 272.8
  },
  "luminance": 0.03407
}

Semantic roles & 50–950 ramp

primary
#22228D
secondary
#B9B951
accent
#E444E4
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #22228D

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

Preview Lab → · Contrast checker → · Palette generator →

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