#22228C#22228C

#22228C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.168 H 272.9°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#22228C
RGBrgb(34, 34, 140)
HSLhsl(240, 61%, 34%)
HSVhsv(240, 76%, 55%)
CMYKcmyk(75.7%, 75.7%, 0%, 45.1%)
CIE-LABlab(21.49, 37.07, -58.06)
CIE-LCHlch(21.49, 68.88, 302.56°)
OKLaboklab(33.9% 0.0084 -0.168)
OKLCHoklch(33.9% 0.168 272.9)
XYZxyz(5.9638, 3.3770, 25.1434)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22228C #8C8C22
analogous
#22578C #22228C #57228C
triadic
#22228C #8C2222 #228C22
tetradic
#22228C #8C2257 #8C8C22 #228C57
square
#22228C #8C2257 #8C8C22 #228C57
split-complementary
#22228C #8C5722 #578C22
monochromatic
#0A0A2A #16165B #22228C #2E2EBD #5353D5

Accessibility & contrast

On white

12.53
#22228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22228C
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22228C#FFFFFF#000000##FFFFFF
##22228C1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #22228c;
/* rgb */ color: rgb(34, 34, 140);
/* oklch */ color: oklch(33.9% 0.168 272.9);
Tailwind
colors: {
  custom: {
    50: '#705eaf',
    500: '#22228c',
    950: '#000000',
  },
}
SCSS
$custom: #22228c;
$custom-light: #705eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#22228c",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 240,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.33898,
    "c": 0.16821,
    "h": 272.9
  },
  "luminance": 0.03378
}

Semantic roles & 50–950 ramp

primary
#22228C
secondary
#B9B951
accent
#E444E4
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #22228C

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

Preview Lab → · Contrast checker → · Palette generator →

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