#222699#222699

#222699 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.181 H 271.3°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#222699
RGBrgb(34, 38, 153)
HSLhsl(238, 64%, 37%)
HSVhsv(238, 78%, 60%)
CMYKcmyk(77.8%, 75.2%, 0%, 40%)
CIE-LABlab(23.76, 39.22, -62.37)
CIE-LCHlch(23.76, 73.67, 302.17°)
OKLaboklab(35.93% 0.0042 -0.1806)
OKLCHoklch(35.93% 0.181 271.3)
XYZxyz(7.1006, 4.0254, 30.5336)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222699 #999522
analogous
#226299 #222699 #5A2299
triadic
#222699 #992226 #269922
tetradic
#222699 #992262 #999522 #22995A
square
#222699 #992262 #999522 #22995A
split-complementary
#222699 #995A22 #629922
monochromatic
#0C0D35 #171A67 #222699 #2D32CB #5B5FDB

Accessibility & contrast

On white

11.63
#222699 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#222699 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222699
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222699#FFFFFF#000000##FFFFFF
##2226991.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9C
Deuteranopia (green-blind)
#003397
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #222699;
/* rgb */ color: rgb(34, 38, 153);
/* oklch */ color: oklch(35.9% 0.181 271.3);
Tailwind
colors: {
  custom: {
    50: '#7262b8',
    500: '#222699',
    950: '#000000',
  },
}
SCSS
$custom: #222699;
$custom-light: #7262b8;
$custom-dark: #000000;
JSON
{
  "hex": "#222699",
  "rgb": {
    "r": 34,
    "g": 38,
    "b": 153
  },
  "hsl": {
    "h": 237.983,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35926,
    "c": 0.18061,
    "h": 271.3
  },
  "luminance": 0.04026
}

Semantic roles & 50–950 ramp

primary
#222699
secondary
#BFBB58
accent
#E141E7
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #222699

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

Preview Lab → · Contrast checker → · Palette generator →

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