#22217E#22217E

#22217E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.151 H 274.3°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#22217E
RGBrgb(34, 33, 126)
HSLhsl(241, 58%, 31%)
HSVhsv(241, 74%, 49%)
CMYKcmyk(73%, 73.8%, 0%, 50.6%)
CIE-LABlab(19.78, 32.74, -52.08)
CIE-LCHlch(19.78, 61.52, 302.16°)
OKLaboklab(32.22% 0.0114 -0.1506)
OKLCHoklch(32.22% 0.151 274.3)
XYZxyz(4.9682, 2.9337, 20.0390)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22217E #7D7E21
analogous
#214E7E #22217E #50217E
triadic
#22217E #7E2221 #217E22
tetradic
#22217E #7E214E #7D7E21 #217E50
square
#22217E #7E214E #7D7E21 #217E50
split-complementary
#22217E #7E5021 #4E7E21
monochromatic
#08081D #15144E #22217E #2F2EAE #4B4AD0

Accessibility & contrast

On white

13.23
#22217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#22217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22217E
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22217E#FFFFFF#000000##FFFFFF
##22217E1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #22217e;
/* rgb */ color: rgb(34, 33, 126);
/* oklch */ color: oklch(32.2% 0.151 274.3);
Tailwind
colors: {
  custom: {
    50: '#6c5da4',
    500: '#22217e',
    950: '#000000',
  },
}
SCSS
$custom: #22217e;
$custom-light: #6c5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#22217e",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 240.645,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32224,
    "c": 0.151,
    "h": 274.3
  },
  "luminance": 0.02934
}

Semantic roles & 50–950 ramp

primary
#22217E
secondary
#B0B14A
accent
#E246E0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #22217E

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

Preview Lab → · Contrast checker → · Palette generator →

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