#222778#222778

#222778 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.136 H 273.4°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#222778
RGBrgb(34, 39, 120)
HSLhsl(237, 56%, 30%)
HSVhsv(237, 72%, 47%)
CMYKcmyk(71.7%, 67.5%, 0%, 52.9%)
CIE-LABlab(20.62, 26.63, -46.87)
CIE-LCHlch(20.62, 53.91, 299.60°)
OKLaboklab(32.65% 0.008 -0.1353)
OKLCHoklch(32.65% 0.136 273.4)
XYZxyz(4.7742, 3.1467, 18.1214)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222778 #787322
analogous
#225278 #222778 #482278
triadic
#222778 #782227 #277822
tetradic
#222778 #782252 #787322 #227848
square
#222778 #782252 #787322 #227848
split-complementary
#222778 #784822 #527822
monochromatic
#070819 #141848 #222778 #3036A8 #4951CB

Accessibility & contrast

On white

12.89
#222778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#222778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222778
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222778#FFFFFF#000000##FFFFFF
##2227781.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#003C4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #222778;
/* rgb */ color: rgb(34, 39, 120);
/* oklch */ color: oklch(32.7% 0.136 273.4);
Tailwind
colors: {
  custom: {
    50: '#6a61a0',
    500: '#222778',
    950: '#000000',
  },
}
SCSS
$custom: #222778;
$custom-light: #6a61a0;
$custom-dark: #000000;
JSON
{
  "hex": "#222778",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 120
  },
  "hsl": {
    "h": 236.512,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32654,
    "c": 0.13557,
    "h": 273.4
  },
  "luminance": 0.03147
}

Semantic roles & 50–950 ramp

primary
#222778
secondary
#ABA54B
accent
#D649DF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #222778

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

Preview Lab → · Contrast checker → · Palette generator →

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