#222178#222178

#222178 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.143 H 275.0°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#222178
RGBrgb(34, 33, 120)
HSLhsl(241, 57%, 30%)
HSVhsv(241, 73%, 47%)
CMYKcmyk(71.7%, 72.5%, 0%, 52.9%)
CIE-LABlab(19.15, 30.59, -49.28)
CIE-LCHlch(19.15, 58.00, 301.83°)
OKLaboklab(31.59% 0.0124 -0.1424)
OKLCHoklch(31.59% 0.143 275)
XYZxyz(4.5926, 2.7834, 18.0609)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222178 #777821
analogous
#214B78 #222178 #4E2178
triadic
#222178 #782221 #217822
tetradic
#222178 #78214B #777821 #21784E
square
#222178 #78214B #777821 #21784E
split-complementary
#222178 #784E21 #4B7821
monochromatic
#070718 #141448 #222178 #302EA8 #4947CC

Accessibility & contrast

On white

13.49
#222178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#222178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222178
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222178#FFFFFF#000000##FFFFFF
##2221781.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002A76
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #222178;
/* rgb */ color: rgb(34, 33, 120);
/* oklch */ color: oklch(31.6% 0.143 275.0);
Tailwind
colors: {
  custom: {
    50: '#6b5da0',
    500: '#222178',
    950: '#000000',
  },
}
SCSS
$custom: #222178;
$custom-light: #6b5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#222178",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 240.69,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.3159,
    "c": 0.14293,
    "h": 275
  },
  "luminance": 0.02784
}

Semantic roles & 50–950 ramp

primary
#222178
secondary
#AAAB4A
accent
#E048DE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #222178

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

Preview Lab → · Contrast checker → · Palette generator →

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