#22207F#22207F

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

Color values

HEX#22207F
RGBrgb(34, 32, 127)
HSLhsl(241, 60%, 31%)
HSVhsv(241, 75%, 50%)
CMYKcmyk(73.2%, 74.8%, 0%, 50.2%)
CIE-LABlab(19.66, 33.72, -52.91)
CIE-LCHlch(19.66, 62.74, 302.51°)
OKLaboklab(32.17% 0.0119 -0.153)
OKLCHoklch(32.17% 0.153 274.4)
XYZxyz(5.0057, 2.9049, 20.3715)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22207F #7D7F20
analogous
#204D7F #22207F #51207F
triadic
#22207F #7F2220 #207F22
tetradic
#22207F #7F204D #7D7F20 #207F51
square
#22207F #7F204D #7D7F20 #207F51
split-complementary
#22207F #7F5120 #4D7F20
monochromatic
#08071D #15144E #22207F #2F2CB0 #4B48D1

Accessibility & contrast

On white

13.28
#22207F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#22207F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22207F
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22207F#FFFFFF#000000##FFFFFF
##22207F1.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)
#003482
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #22207f;
/* rgb */ color: rgb(34, 32, 127);
/* oklch */ color: oklch(32.2% 0.153 274.4);
Tailwind
colors: {
  custom: {
    50: '#6c5ca5',
    500: '#22207f',
    950: '#000000',
  },
}
SCSS
$custom: #22207f;
$custom-light: #6c5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#22207f",
  "rgb": {
    "r": 34,
    "g": 32,
    "b": 127
  },
  "hsl": {
    "h": 241.263,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32172,
    "c": 0.15344,
    "h": 274.4
  },
  "luminance": 0.02905
}

Semantic roles & 50–950 ramp

primary
#22207F
secondary
#B0B249
accent
#E345E0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #22207F

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

Preview Lab → · Contrast checker → · Palette generator →

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