#222997#222997

#222997 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.175 H 271.0°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#222997
RGBrgb(34, 41, 151)
HSLhsl(236, 63%, 36%)
HSVhsv(236, 77%, 59%)
CMYKcmyk(77.5%, 72.8%, 0%, 40.8%)
CIE-LABlab(24.19, 36.71, -60.42)
CIE-LCHlch(24.19, 70.69, 301.28°)
OKLaboklab(36.17% 0.0032 -0.1749)
OKLCHoklch(36.17% 0.175 271)
XYZxyz(7.0366, 4.1596, 29.7042)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222997 #979022
analogous
#226497 #222997 #562297
triadic
#222997 #972229 #299722
tetradic
#222997 #972264 #979022 #229756
square
#222997 #972264 #979022 #229756
split-complementary
#222997 #975622 #649722
monochromatic
#0C0E33 #171B65 #222997 #2D37C9 #5A61DA

Accessibility & contrast

On white

11.46
#222997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#222997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222997
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222997#FFFFFF#000000##FFFFFF
##2229971.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #222997;
/* rgb */ color: rgb(34, 41, 151);
/* oklch */ color: oklch(36.2% 0.175 271.0);
Tailwind
colors: {
  custom: {
    50: '#7263b7',
    500: '#222997',
    950: '#000000',
  },
}
SCSS
$custom: #222997;
$custom-light: #7263b7;
$custom-dark: #000000;
JSON
{
  "hex": "#222997",
  "rgb": {
    "r": 34,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 236.41,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36174,
    "c": 0.17493,
    "h": 271
  },
  "luminance": 0.0416
}

Semantic roles & 50–950 ramp

primary
#222997
secondary
#BEB857
accent
#DC42E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #222997

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

Preview Lab → · Contrast checker → · Palette generator →

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