#22226D#22226D

#22226D is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.6% C 0.126 H 276.0°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#22226D
RGBrgb(34, 34, 109)
HSLhsl(240, 52%, 28%)
HSVhsv(240, 69%, 43%)
CMYKcmyk(68.8%, 68.8%, 0%, 57.3%)
CIE-LABlab(18.31, 25.89, -43.57)
CIE-LCHlch(18.31, 50.68, 300.72°)
OKLaboklab(30.65% 0.0131 -0.1257)
OKLCHoklch(30.65% 0.126 276)
XYZxyz(3.9911, 2.5879, 14.7542)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22226D #6D6D22
analogous
#22476D #22226D #47226D
triadic
#22226D #6D2222 #226D22
tetradic
#22226D #6D2247 #6D6D22 #226D47
square
#22226D #6D2247 #6D6D22 #226D47
split-complementary
#22226D #6D4722 #476D22
monochromatic
#070717 #13133E #22226D #31319C #4545C5

Accessibility & contrast

On white

13.84
#22226D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#22226D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22226D
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22226D#FFFFFF#000000##FFFFFF
##22226D1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#00296C
Tritanopia (blue-blind)
#003544
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #22226d;
/* rgb */ color: rgb(34, 34, 109);
/* oklch */ color: oklch(30.6% 0.126 276.0);
Tailwind
colors: {
  custom: {
    50: '#685d98',
    500: '#22226d',
    950: '#000000',
  },
}
SCSS
$custom: #22226d;
$custom-light: #685d98;
$custom-dark: #000000;
JSON
{
  "hex": "#22226d",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 109
  },
  "hsl": {
    "h": 240,
    "s": 52.448,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30649,
    "c": 0.12636,
    "h": 276
  },
  "luminance": 0.02588
}

Semantic roles & 50–950 ramp

primary
#22226D
secondary
#A1A14A
accent
#DC4CDC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #22226D

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

Preview Lab → · Contrast checker → · Palette generator →

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