#222899#222899

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

Color values

HEX#222899
RGBrgb(34, 40, 153)
HSLhsl(237, 64%, 37%)
HSVhsv(237, 78%, 60%)
CMYKcmyk(77.8%, 73.9%, 0%, 40%)
CIE-LABlab(24.18, 38.03, -61.66)
CIE-LCHlch(24.18, 72.44, 301.66°)
OKLaboklab(36.23% 0.0033 -0.1785)
OKLCHoklch(36.23% 0.179 271.1)
XYZxyz(7.1663, 4.1568, 30.5555)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222899 #999322
analogous
#226499 #222899 #582299
triadic
#222899 #992228 #289922
tetradic
#222899 #992264 #999322 #229958
square
#222899 #992264 #999322 #229958
split-complementary
#222899 #995822 #649922
monochromatic
#0C0E35 #171B67 #222899 #2D35CB #5B61DB

Accessibility & contrast

On white

11.47
#222899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222899
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222899#FFFFFF#000000##FFFFFF
##2228991.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9C
Deuteranopia (green-blind)
#003497
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #222899;
/* rgb */ color: rgb(34, 40, 153);
/* oklch */ color: oklch(36.2% 0.179 271.1);
Tailwind
colors: {
  custom: {
    50: '#7263b8',
    500: '#222899',
    950: '#000000',
  },
}
SCSS
$custom: #222899;
$custom-light: #7263b8;
$custom-dark: #000000;
JSON
{
  "hex": "#222899",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 236.975,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36231,
    "c": 0.17855,
    "h": 271.1
  },
  "luminance": 0.04158
}

Semantic roles & 50–950 ramp

primary
#222899
secondary
#BFBA58
accent
#DE41E7
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #222899

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

Preview Lab → · Contrast checker → · Palette generator →

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