#222278#222278

#222278 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.142 H 274.7°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#222278
RGBrgb(34, 34, 120)
HSLhsl(240, 56%, 30%)
HSVhsv(240, 72%, 47%)
CMYKcmyk(71.7%, 71.7%, 0%, 52.9%)
CIE-LABlab(19.39, 29.94, -48.89)
CIE-LCHlch(19.39, 57.33, 301.48°)
OKLaboklab(31.76% 0.0117 -0.1413)
OKLCHoklch(31.76% 0.142 274.7)
XYZxyz(4.6208, 2.8398, 18.0703)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222278 #787822
analogous
#224D78 #222278 #4D2278
triadic
#222278 #782222 #227822
tetradic
#222278 #78224D #787822 #22784D
square
#222278 #78224D #787822 #22784D
split-complementary
#222278 #784D22 #4D7822
monochromatic
#070719 #141448 #222278 #3030A8 #4949CB

Accessibility & contrast

On white

13.39
#222278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#222278 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222278
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222278#FFFFFF#000000##FFFFFF
##2222781.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#002B76
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #222278;
/* rgb */ color: rgb(34, 34, 120);
/* oklch */ color: oklch(31.8% 0.142 274.7);
Tailwind
colors: {
  custom: {
    50: '#6a5ea0',
    500: '#222278',
    950: '#000000',
  },
}
SCSS
$custom: #222278;
$custom-light: #6a5ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#222278",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 120
  },
  "hsl": {
    "h": 240,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3176,
    "c": 0.14175,
    "h": 274.7
  },
  "luminance": 0.0284
}

Semantic roles & 50–950 ramp

primary
#222278
secondary
#ABAB4B
accent
#DF49DF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #222278

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

Preview Lab → · Contrast checker → · Palette generator →

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