#22226C#22226C

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

Color values

HEX#22226C
RGBrgb(34, 34, 108)
HSLhsl(240, 52%, 28%)
HSVhsv(240, 69%, 42%)
CMYKcmyk(68.5%, 68.5%, 0%, 57.6%)
CIE-LABlab(18.22, 25.52, -43.07)
CIE-LCHlch(18.22, 50.07, 300.65°)
OKLaboklab(30.55% 0.0132 -0.1242)
OKLCHoklch(30.55% 0.125 276.1)
XYZxyz(3.9376, 2.5665, 14.4723)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22226C #6C6C22
analogous
#22476C #22226C #47226C
triadic
#22226C #6C2222 #226C22
tetradic
#22226C #6C2247 #6C6C22 #226C47
square
#22226C #6C2247 #6C6C22 #226C47
split-complementary
#22226C #6C4722 #476C22
monochromatic
#070717 #13133D #22226C #31319B #4444C4

Accessibility & contrast

On white

13.88
#22226C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22226C
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22226C#FFFFFF#000000##FFFFFF
##22226C1.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#00296B
Tritanopia (blue-blind)
#003543
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #22226c;
/* rgb */ color: rgb(34, 34, 108);
/* oklch */ color: oklch(30.6% 0.125 276.1);
Tailwind
colors: {
  custom: {
    50: '#685d97',
    500: '#22226c',
    950: '#000000',
  },
}
SCSS
$custom: #22226c;
$custom-light: #685d97;
$custom-dark: #000000;
JSON
{
  "hex": "#22226c",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 108
  },
  "hsl": {
    "h": 240,
    "s": 52.113,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3055,
    "c": 0.12493,
    "h": 276.1
  },
  "luminance": 0.02567
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #22226C

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

Preview Lab → · Contrast checker → · Palette generator →

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