#222198#222198

#222198 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.184 H 272.0°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#222198
RGBrgb(34, 33, 152)
HSLhsl(241, 64%, 36%)
HSVhsv(241, 78%, 60%)
CMYKcmyk(77.6%, 78.3%, 0%, 40.4%)
CIE-LABlab(22.63, 41.75, -63.61)
CIE-LCHlch(22.63, 76.08, 303.28°)
OKLaboklab(35.1% 0.0065 -0.1841)
OKLCHoklch(35.1% 0.184 272)
XYZxyz(6.8691, 3.6941, 30.0507)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222198 #979821
analogous
#215C98 #222198 #5E2198
triadic
#222198 #982221 #219822
tetradic
#222198 #98215C #979821 #21985E
square
#222198 #98215C #979821 #21985E
split-complementary
#222198 #985E21 #5C9821
monochromatic
#0C0B33 #171666 #222198 #2D2CCA #5A59DB

Accessibility & contrast

On white

12.08
#222198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#222198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222198
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222198#FFFFFF#000000##FFFFFF
##2221981.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003096
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #222198;
/* rgb */ color: rgb(34, 33, 152);
/* oklch */ color: oklch(35.1% 0.184 272.0);
Tailwind
colors: {
  custom: {
    50: '#735eb8',
    500: '#222198',
    950: '#000000',
  },
}
SCSS
$custom: #222198;
$custom-light: #735eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#222198",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 240.504,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35099,
    "c": 0.18423,
    "h": 272
  },
  "luminance": 0.03695
}

Semantic roles & 50–950 ramp

primary
#222198
secondary
#BEBF56
accent
#E740E6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #222198

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

Preview Lab → · Contrast checker → · Palette generator →

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