#22217F#22217F

#22217F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.152 H 274.2°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#22217F
RGBrgb(34, 33, 127)
HSLhsl(241, 59%, 31%)
HSVhsv(241, 74%, 50%)
CMYKcmyk(73.2%, 74%, 0%, 50.2%)
CIE-LABlab(19.88, 33.10, -52.54)
CIE-LCHlch(19.88, 62.10, 302.21°)
OKLaboklab(32.33% 0.0113 -0.1519)
OKLCHoklch(32.33% 0.152 274.2)
XYZxyz(5.0330, 2.9596, 20.3806)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22217F #7E7F21
analogous
#214F7F #22217F #51217F
triadic
#22217F #7F2221 #217F22
tetradic
#22217F #7F214F #7E7F21 #217F51
square
#22217F #7F214F #7E7F21 #217F51
split-complementary
#22217F #7F5121 #4F7F21
monochromatic
#08081E #15144E #22217F #2F2EB0 #4C4AD0

Accessibility & contrast

On white

13.19
#22217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22217F
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22217F#FFFFFF#000000##FFFFFF
##22217F1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22217f;
/* rgb */ color: rgb(34, 33, 127);
/* oklch */ color: oklch(32.3% 0.152 274.2);
Tailwind
colors: {
  custom: {
    50: '#6c5da5',
    500: '#22217f',
    950: '#000000',
  },
}
SCSS
$custom: #22217f;
$custom-light: #6c5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#22217f",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 240.638,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32331,
    "c": 0.15234,
    "h": 274.2
  },
  "luminance": 0.0296
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #22217F

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

Preview Lab → · Contrast checker → · Palette generator →

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