#22217D#22217D

#22217D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.150 H 274.4°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#22217D
RGBrgb(34, 33, 125)
HSLhsl(241, 58%, 31%)
HSVhsv(241, 74%, 49%)
CMYKcmyk(72.8%, 73.6%, 0%, 51%)
CIE-LABlab(19.67, 32.38, -51.62)
CIE-LCHlch(19.67, 60.93, 302.10°)
OKLaboklab(32.12% 0.0116 -0.1492)
OKLCHoklch(32.12% 0.15 274.4)
XYZxyz(4.9040, 2.9080, 19.7009)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22217D #7C7D21
analogous
#214E7D #22217D #50217D
triadic
#22217D #7D2221 #217D22
tetradic
#22217D #7D214E #7C7D21 #217D50
square
#22217D #7D214E #7C7D21 #217D50
split-complementary
#22217D #7D5021 #4E7D21
monochromatic
#08071C #15144D #22217D #2F2EAD #4B49CF

Accessibility & contrast

On white

13.28
#22217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#22217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22217D
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22217D#FFFFFF#000000##FFFFFF
##22217D1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #22217d;
/* rgb */ color: rgb(34, 33, 125);
/* oklch */ color: oklch(32.1% 0.150 274.4);
Tailwind
colors: {
  custom: {
    50: '#6c5da4',
    500: '#22217d',
    950: '#000000',
  },
}
SCSS
$custom: #22217d;
$custom-light: #6c5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#22217d",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 240.652,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32118,
    "c": 0.14967,
    "h": 274.4
  },
  "luminance": 0.02908
}

Semantic roles & 50–950 ramp

primary
#22217D
secondary
#AFB04A
accent
#E146E0
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #22217D

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

Preview Lab → · Contrast checker → · Palette generator →

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