#222288#222288

#222288 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.163 H 273.2°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#222288
RGBrgb(34, 34, 136)
HSLhsl(240, 60%, 33%)
HSVhsv(240, 75%, 53%)
CMYKcmyk(75%, 75%, 0%, 46.7%)
CIE-LABlab(21.06, 35.67, -56.27)
CIE-LCHlch(21.06, 66.63, 302.37°)
OKLaboklab(33.46% 0.0091 -0.1628)
OKLCHoklch(33.46% 0.163 273.2)
XYZxyz(5.6742, 3.2611, 23.6182)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222288 #888822
analogous
#225588 #222288 #552288
triadic
#222288 #882222 #228822
tetradic
#222288 #882255 #888822 #228855
square
#222288 #882255 #888822 #228855
split-complementary
#222288 #885522 #558822
monochromatic
#0A0A26 #161657 #222288 #2E2EB9 #5151D3

Accessibility & contrast

On white

12.71
#222288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#222288 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222288
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222288#FFFFFF#000000##FFFFFF
##2222881.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#002E86
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #222288;
/* rgb */ color: rgb(34, 34, 136);
/* oklch */ color: oklch(33.5% 0.163 273.2);
Tailwind
colors: {
  custom: {
    50: '#6e5eac',
    500: '#222288',
    950: '#000000',
  },
}
SCSS
$custom: #222288;
$custom-light: #6e5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#222288",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 136
  },
  "hsl": {
    "h": 240,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3346,
    "c": 0.16305,
    "h": 273.2
  },
  "luminance": 0.03262
}

Semantic roles & 50–950 ramp

primary
#222288
secondary
#B7B74F
accent
#E345E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #222288

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

Preview Lab → · Contrast checker → · Palette generator →

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