#22218E#22218E

#22218E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.172 H 272.8°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#22218E
RGBrgb(34, 33, 142)
HSLhsl(241, 62%, 34%)
HSVhsv(241, 77%, 56%)
CMYKcmyk(76.1%, 76.8%, 0%, 44.3%)
CIE-LABlab(21.51, 38.35, -59.28)
CIE-LCHlch(21.51, 70.61, 302.90°)
OKLaboklab(33.97% 0.0085 -0.1716)
OKLCHoklch(33.97% 0.172 272.8)
XYZxyz(6.0844, 3.3802, 25.9177)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22218E #8D8E21
analogous
#21578E #22218E #58218E
triadic
#22218E #8E2221 #218E22
tetradic
#22218E #8E2157 #8D8E21 #218E58
square
#22218E #8E2157 #8D8E21 #218E58
split-complementary
#22218E #8E5821 #578E21
monochromatic
#0A0A2B #16155C #22218E #2E2DC0 #5452D7

Accessibility & contrast

On white

12.53
#22218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#22218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22218E
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22218E#FFFFFF#000000##FFFFFF
##22218E1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #22218e;
/* rgb */ color: rgb(34, 33, 142);
/* oklch */ color: oklch(34.0% 0.172 272.8);
Tailwind
colors: {
  custom: {
    50: '#705eb0',
    500: '#22218e',
    950: '#000000',
  },
}
SCSS
$custom: #22218e;
$custom-light: #705eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#22218e",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 240.55,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.33972,
    "c": 0.17177,
    "h": 272.8
  },
  "luminance": 0.03381
}

Semantic roles & 50–950 ramp

primary
#22218E
secondary
#B9BA50
accent
#E542E4
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #22218E

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

Preview Lab → · Contrast checker → · Palette generator →

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