#22218C#22218C

#22218C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.169 H 273.0°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#22218C
RGBrgb(34, 33, 140)
HSLhsl(241, 62%, 34%)
HSVhsv(241, 76%, 55%)
CMYKcmyk(75.7%, 76.4%, 0%, 45.1%)
CIE-LABlab(21.28, 37.66, -58.40)
CIE-LCHlch(21.28, 69.49, 302.82°)
OKLaboklab(33.75% 0.0089 -0.169)
OKLCHoklch(33.75% 0.169 273)
XYZxyz(5.9356, 3.3206, 25.1340)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22218C #8B8C21
analogous
#21568C #22218C #58218C
triadic
#22218C #8C2221 #218C22
tetradic
#22218C #8C2156 #8B8C21 #218C58
square
#22218C #8C2156 #8B8C21 #218C58
split-complementary
#22218C #8C5821 #568C21
monochromatic
#0A0A29 #16155A #22218C #2E2DBE #5351D6

Accessibility & contrast

On white

12.62
#22218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22218C
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22218C#FFFFFF#000000##FFFFFF
##22218C1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #22218c;
/* rgb */ color: rgb(34, 33, 140);
/* oklch */ color: oklch(33.7% 0.169 273.0);
Tailwind
colors: {
  custom: {
    50: '#705eaf',
    500: '#22218c',
    950: '#000000',
  },
}
SCSS
$custom: #22218c;
$custom-light: #705eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#22218c",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 240.561,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33749,
    "c": 0.16922,
    "h": 273
  },
  "luminance": 0.03321
}

Semantic roles & 50–950 ramp

primary
#22218C
secondary
#B8B94F
accent
#E543E3
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #22218C

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

Preview Lab → · Contrast checker → · Palette generator →

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