#22226A#22226A

#22226A is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.4% C 0.122 H 276.3°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#22226A
RGBrgb(34, 34, 106)
HSLhsl(240, 51%, 27%)
HSVhsv(240, 68%, 42%)
CMYKcmyk(67.9%, 67.9%, 0%, 58.4%)
CIE-LABlab(18.03, 24.78, -42.08)
CIE-LCHlch(18.03, 48.83, 300.49°)
OKLaboklab(30.35% 0.0134 -0.1213)
OKLCHoklch(30.35% 0.122 276.3)
XYZxyz(3.8324, 2.5244, 13.9182)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22226A #6A6A22
analogous
#22466A #22226A #46226A
triadic
#22226A #6A2222 #226A22
tetradic
#22226A #6A2246 #6A6A22 #226A46
square
#22226A #6A2246 #6A6A22 #226A46
split-complementary
#22226A #6A4622 #466A22
monochromatic
#070717 #13133C #22226A #313198 #4444C3

Accessibility & contrast

On white

13.95
#22226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#22226A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22226A
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22226A#FFFFFF#000000##FFFFFF
##22226A1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#002969
Tritanopia (blue-blind)
#003442
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #22226a;
/* rgb */ color: rgb(34, 34, 106);
/* oklch */ color: oklch(30.4% 0.122 276.3);
Tailwind
colors: {
  custom: {
    50: '#675d95',
    500: '#22226a',
    950: '#000000',
  },
}
SCSS
$custom: #22226a;
$custom-light: #675d95;
$custom-dark: #000000;
JSON
{
  "hex": "#22226a",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 240,
    "s": 51.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30355,
    "c": 0.12205,
    "h": 276.3
  },
  "luminance": 0.02525
}

Semantic roles & 50–950 ramp

primary
#22226A
secondary
#9E9E4A
accent
#DB4DDB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #22226A

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

Preview Lab → · Contrast checker → · Palette generator →

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