#222398#222398

#222398 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.182 H 271.8°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#222398
RGBrgb(34, 35, 152)
HSLhsl(239, 63%, 36%)
HSVhsv(239, 78%, 60%)
CMYKcmyk(77.6%, 77%, 0%, 40.4%)
CIE-LABlab(23.03, 40.62, -62.95)
CIE-LCHlch(23.03, 74.92, 302.83°)
OKLaboklab(35.38% 0.0057 -0.1822)
OKLCHoklch(35.38% 0.182 271.8)
XYZxyz(6.9263, 3.8084, 30.0697)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222398 #989722
analogous
#225E98 #222398 #5C2298
triadic
#222398 #982223 #239822
tetradic
#222398 #98225E #989722 #22985C
square
#222398 #98225E #989722 #22985C
split-complementary
#222398 #985C22 #5E9822
monochromatic
#0C0C34 #171766 #222398 #2D2FCA #5A5BDA

Accessibility & contrast

On white

11.92
#222398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#222398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222398
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222398#FFFFFF#000000##FFFFFF
##2223981.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003196
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #222398;
/* rgb */ color: rgb(34, 35, 152);
/* oklch */ color: oklch(35.4% 0.182 271.8);
Tailwind
colors: {
  custom: {
    50: '#7260b8',
    500: '#222398',
    950: '#000000',
  },
}
SCSS
$custom: #222398;
$custom-light: #7260b8;
$custom-dark: #000000;
JSON
{
  "hex": "#222398",
  "rgb": {
    "r": 34,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 239.492,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35377,
    "c": 0.18233,
    "h": 271.8
  },
  "luminance": 0.03809
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #222398

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

Preview Lab → · Contrast checker → · Palette generator →

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