#222478#222478

#222478 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.1% C 0.139 H 274.2°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#222478
RGBrgb(34, 36, 120)
HSLhsl(239, 56%, 30%)
HSVhsv(239, 72%, 47%)
CMYKcmyk(71.7%, 70%, 0%, 52.9%)
CIE-LABlab(19.87, 28.63, -48.10)
CIE-LCHlch(19.87, 55.98, 300.76°)
OKLaboklab(32.11% 0.0103 -0.1389)
OKLCHoklch(32.11% 0.139 274.2)
XYZxyz(4.6796, 2.9575, 18.0899)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222478 #787622
analogous
#224F78 #222478 #4B2278
triadic
#222478 #782224 #247822
tetradic
#222478 #78224F #787622 #22784B
square
#222478 #78224F #787622 #22784B
split-complementary
#222478 #784B22 #4F7822
monochromatic
#070719 #141648 #222478 #3032A8 #494CCB

Accessibility & contrast

On white

13.19
#222478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#222478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222478
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222478#FFFFFF#000000##FFFFFF
##2224781.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#002C76
Tritanopia (blue-blind)
#003A4A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #222478;
/* rgb */ color: rgb(34, 36, 120);
/* oklch */ color: oklch(32.1% 0.139 274.2);
Tailwind
colors: {
  custom: {
    50: '#6a5fa0',
    500: '#222478',
    950: '#000000',
  },
}
SCSS
$custom: #222478;
$custom-light: #6a5fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#222478",
  "rgb": {
    "r": 34,
    "g": 36,
    "b": 120
  },
  "hsl": {
    "h": 238.605,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32109,
    "c": 0.13932,
    "h": 274.2
  },
  "luminance": 0.02958
}

Semantic roles & 50–950 ramp

primary
#222478
secondary
#ABA94B
accent
#DC49DF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #222478

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

Preview Lab → · Contrast checker → · Palette generator →

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