#222298#222298

#222298 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.183 H 271.9°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#222298
RGBrgb(34, 34, 152)
HSLhsl(240, 63%, 36%)
HSVhsv(240, 78%, 60%)
CMYKcmyk(77.6%, 77.6%, 0%, 40.4%)
CIE-LABlab(22.83, 41.19, -63.28)
CIE-LCHlch(22.83, 75.51, 303.06°)
OKLaboklab(35.24% 0.0061 -0.1832)
OKLCHoklch(35.24% 0.183 271.9)
XYZxyz(6.8973, 3.7504, 30.0601)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222298 #989822
analogous
#225D98 #222298 #5D2298
triadic
#222298 #982222 #229822
tetradic
#222298 #98225D #989822 #22985D
square
#222298 #98225D #989822 #22985D
split-complementary
#222298 #985D22 #5D9822
monochromatic
#0C0C34 #171766 #222298 #2D2DCA #5A5ADA

Accessibility & contrast

On white

12.00
#222298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#222298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222298
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222298#FFFFFF#000000##FFFFFF
##2222981.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.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: #222298;
/* rgb */ color: rgb(34, 34, 152);
/* oklch */ color: oklch(35.2% 0.183 271.9);
Tailwind
colors: {
  custom: {
    50: '#735fb8',
    500: '#222298',
    950: '#000000',
  },
}
SCSS
$custom: #222298;
$custom-light: #735fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#222298",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 240,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35237,
    "c": 0.18329,
    "h": 271.9
  },
  "luminance": 0.03751
}

Semantic roles & 50–950 ramp

primary
#222298
secondary
#BEBE57
accent
#E641E6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #222298

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

Preview Lab → · Contrast checker → · Palette generator →

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