#22218F#22218F

#22218F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.173 H 272.7°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#22218F
RGBrgb(34, 33, 143)
HSLhsl(241, 63%, 35%)
HSVhsv(241, 77%, 56%)
CMYKcmyk(76.2%, 76.9%, 0%, 43.9%)
CIE-LABlab(21.62, 38.69, -59.72)
CIE-LCHlch(21.62, 71.16, 302.94°)
OKLaboklab(34.08% 0.0083 -0.1728)
OKLCHoklch(34.08% 0.173 272.7)
XYZxyz(6.1598, 3.4103, 26.3149)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22218F #8E8F21
analogous
#21578F #22218F #59218F
triadic
#22218F #8F2221 #218F22
tetradic
#22218F #8F2157 #8E8F21 #218F59
square
#22218F #8F2157 #8E8F21 #218F59
split-complementary
#22218F #8F5921 #578F21
monochromatic
#0A0A2C #16165D #22218F #2E2CC1 #5453D7

Accessibility & contrast

On white

12.48
#22218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22218F
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22218F#FFFFFF#000000##FFFFFF
##22218F1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22218f;
/* rgb */ color: rgb(34, 33, 143);
/* oklch */ color: oklch(34.1% 0.173 272.7);
Tailwind
colors: {
  custom: {
    50: '#705eb1',
    500: '#22218f',
    950: '#000000',
  },
}
SCSS
$custom: #22218f;
$custom-light: #705eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#22218f",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 240.545,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34083,
    "c": 0.17303,
    "h": 272.7
  },
  "luminance": 0.03411
}

Semantic roles & 50–950 ramp

primary
#22218F
secondary
#BABB51
accent
#E642E4
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #22218F

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

Preview Lab → · Contrast checker → · Palette generator →

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