#22218B#22218B

#22218B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.168 H 273.1°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#22218B
RGBrgb(34, 33, 139)
HSLhsl(241, 62%, 34%)
HSVhsv(241, 76%, 55%)
CMYKcmyk(75.5%, 76.3%, 0%, 45.5%)
CIE-LABlab(21.17, 37.31, -57.96)
CIE-LCHlch(21.17, 68.93, 302.77°)
OKLaboklab(33.64% 0.0091 -0.1677)
OKLCHoklch(33.64% 0.168 273.1)
XYZxyz(5.8622, 3.2913, 24.7474)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22218B #8A8B21
analogous
#21558B #22218B #57218B
triadic
#22218B #8B2221 #218B22
tetradic
#22218B #8B2155 #8A8B21 #218B57
square
#22218B #8B2155 #8A8B21 #218B57
split-complementary
#22218B #8B5721 #558B21
monochromatic
#0A0A28 #16155A #22218B #2E2DBC #5251D6

Accessibility & contrast

On white

12.66
#22218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#22218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22218B
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22218B#FFFFFF#000000##FFFFFF
##22218B1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002E89
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #22218b;
/* rgb */ color: rgb(34, 33, 139);
/* oklch */ color: oklch(33.6% 0.168 273.1);
Tailwind
colors: {
  custom: {
    50: '#6f5eae',
    500: '#22218b',
    950: '#000000',
  },
}
SCSS
$custom: #22218b;
$custom-light: #6f5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#22218b",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 240.566,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.33638,
    "c": 0.16795,
    "h": 273.1
  },
  "luminance": 0.03292
}

Semantic roles & 50–950 ramp

primary
#22218B
secondary
#B8B94F
accent
#E543E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #22218B

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

Preview Lab → · Contrast checker → · Palette generator →

#22218B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva