#22218D#22218D

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

Color values

HEX#22218D
RGBrgb(34, 33, 141)
HSLhsl(241, 62%, 34%)
HSVhsv(241, 77%, 55%)
CMYKcmyk(75.9%, 76.6%, 0%, 44.7%)
CIE-LABlab(21.40, 38.01, -58.84)
CIE-LCHlch(21.40, 70.05, 302.86°)
OKLaboklab(33.86% 0.0087 -0.1703)
OKLCHoklch(33.86% 0.171 272.9)
XYZxyz(6.0097, 3.3503, 25.5241)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22218D #8C8D21
analogous
#21568D #22218D #58218D
triadic
#22218D #8D2221 #218D22
tetradic
#22218D #8D2156 #8C8D21 #218D58
square
#22218D #8D2156 #8C8D21 #218D58
split-complementary
#22218D #8D5821 #568D21
monochromatic
#0A0A2A #16155B #22218D #2E2DBF #5352D6

Accessibility & contrast

On white

12.57
#22218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#22218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22218D
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22218D#FFFFFF#000000##FFFFFF
##22218D1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #22218d;
/* rgb */ color: rgb(34, 33, 141);
/* oklch */ color: oklch(33.9% 0.171 272.9);
Tailwind
colors: {
  custom: {
    50: '#705eaf',
    500: '#22218d',
    950: '#000000',
  },
}
SCSS
$custom: #22218d;
$custom-light: #705eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#22218d",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 240.556,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3386,
    "c": 0.1705,
    "h": 272.9
  },
  "luminance": 0.03351
}

Semantic roles & 50–950 ramp

primary
#22218D
secondary
#B9BA50
accent
#E543E4
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #22218D

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

Preview Lab → · Contrast checker → · Palette generator →

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