#222399#222399

#222399 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.184 H 271.7°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#222399
RGBrgb(34, 35, 153)
HSLhsl(239, 64%, 37%)
HSVhsv(239, 78%, 60%)
CMYKcmyk(77.8%, 77.1%, 0%, 40%)
CIE-LABlab(23.14, 40.96, -63.38)
CIE-LCHlch(23.14, 75.47, 302.87°)
OKLaboklab(35.49% 0.0055 -0.1835)
OKLCHoklch(35.49% 0.184 271.7)
XYZxyz(7.0085, 3.8413, 30.5029)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222399 #999822
analogous
#225F99 #222399 #5D2299
triadic
#222399 #992223 #239922
tetradic
#222399 #99225F #999822 #22995D
square
#222399 #99225F #999822 #22995D
split-complementary
#222399 #995D22 #5F9922
monochromatic
#0C0C35 #171867 #222399 #2D2ECB #5B5CDB

Accessibility & contrast

On white

11.88
#222399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#222399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222399
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222399#FFFFFF#000000##FFFFFF
##2223991.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003197
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #222399;
/* rgb */ color: rgb(34, 35, 153);
/* oklch */ color: oklch(35.5% 0.184 271.7);
Tailwind
colors: {
  custom: {
    50: '#7360b8',
    500: '#222399',
    950: '#000000',
  },
}
SCSS
$custom: #222399;
$custom-light: #7360b8;
$custom-dark: #000000;
JSON
{
  "hex": "#222399",
  "rgb": {
    "r": 34,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 239.496,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3549,
    "c": 0.18357,
    "h": 271.7
  },
  "luminance": 0.03842
}

Semantic roles & 50–950 ramp

primary
#222399
secondary
#BFBE58
accent
#E541E7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #222399

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

Preview Lab → · Contrast checker → · Palette generator →

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