#22219D#22219D

#22219D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.190 H 271.6°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#22219D
RGBrgb(34, 33, 157)
HSLhsl(240, 65%, 37%)
HSVhsv(240, 79%, 62%)
CMYKcmyk(78.3%, 79%, 0%, 38.4%)
CIE-LABlab(23.21, 43.41, -65.72)
CIE-LCHlch(23.21, 78.77, 303.45°)
OKLaboklab(35.67% 0.0054 -0.1903)
OKLCHoklch(35.67% 0.19 271.6)
XYZxyz(7.2873, 3.8613, 32.2530)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22219D #9C9D21
analogous
#215E9D #22219D #60219D
triadic
#22219D #9D2221 #219D22
tetradic
#22219D #9D215E #9C9D21 #219D60
square
#22219D #9D215E #9C9D21 #219D60
split-complementary
#22219D #9D6021 #5E9D21
monochromatic
#0C0C38 #17166A #22219D #2D2CD0 #5D5CDD

Accessibility & contrast

On white

11.85
#22219D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#22219D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22219D
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22219D#FFFFFF#000000##FFFFFF
##22219D1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA0
Deuteranopia (green-blind)
#00319B
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #22219d;
/* rgb */ color: rgb(34, 33, 157);
/* oklch */ color: oklch(35.7% 0.190 271.6);
Tailwind
colors: {
  custom: {
    50: '#745fbb',
    500: '#22219d',
    950: '#000000',
  },
}
SCSS
$custom: #22219d;
$custom-light: #745fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#22219d",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 157
  },
  "hsl": {
    "h": 240.484,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.35671,
    "c": 0.19034,
    "h": 271.6
  },
  "luminance": 0.03862
}

Semantic roles & 50–950 ramp

primary
#22219D
secondary
#C0C159
accent
#E840E7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #22219D

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

Preview Lab → · Contrast checker → · Palette generator →

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