#222197#222197

#222197 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.183 H 272.1°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#222197
RGBrgb(34, 33, 151)
HSLhsl(241, 64%, 36%)
HSVhsv(241, 78%, 59%)
CMYKcmyk(77.5%, 78.1%, 0%, 40.8%)
CIE-LABlab(22.52, 41.41, -63.18)
CIE-LCHlch(22.52, 75.54, 303.24°)
OKLaboklab(34.99% 0.0067 -0.1829)
OKLCHoklch(34.99% 0.183 272.1)
XYZxyz(6.7876, 3.6614, 29.6212)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222197 #969721
analogous
#215B97 #222197 #5D2197
triadic
#222197 #972221 #219722
tetradic
#222197 #97215B #969721 #21975D
square
#222197 #97215B #969721 #21975D
split-complementary
#222197 #975D21 #5B9721
monochromatic
#0B0B33 #171665 #222197 #2D2CC9 #5958DA

Accessibility & contrast

On white

12.12
#222197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#222197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222197
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222197#FFFFFF#000000##FFFFFF
##2221971.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003095
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #222197;
/* rgb */ color: rgb(34, 33, 151);
/* oklch */ color: oklch(35.0% 0.183 272.1);
Tailwind
colors: {
  custom: {
    50: '#725eb7',
    500: '#222197',
    950: '#000000',
  },
}
SCSS
$custom: #222197;
$custom-light: #725eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#222197",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 240.508,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.34985,
    "c": 0.183,
    "h": 272.1
  },
  "luminance": 0.03662
}

Semantic roles & 50–950 ramp

primary
#222197
secondary
#BEBE55
accent
#E741E6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #222197

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

Preview Lab → · Contrast checker → · Palette generator →

#222197 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva