#222C78#222C78

#222C78 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.129 H 271.8°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#222C78
RGBrgb(34, 44, 120)
HSLhsl(233, 56%, 30%)
HSVhsv(233, 72%, 47%)
CMYKcmyk(71.7%, 63.3%, 0%, 52.9%)
CIE-LABlab(21.93, 23.21, -44.73)
CIE-LCHlch(21.93, 50.39, 297.42°)
OKLaboklab(33.62% 0.004 -0.129)
OKLCHoklch(33.62% 0.129 271.8)
XYZxyz(4.9494, 3.4970, 18.1798)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222C78 #786E22
analogous
#225778 #222C78 #432278
triadic
#222C78 #78222C #2C7822
tetradic
#222C78 #782257 #786E22 #227843
square
#222C78 #782257 #786E22 #227843
split-complementary
#222C78 #784322 #577822
monochromatic
#070919 #141B48 #222C78 #303DA8 #4958CB

Accessibility & contrast

On white

12.36
#222C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#222C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222C78
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222C78#FFFFFF#000000##FFFFFF
##222C781.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397A
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #222c78;
/* rgb */ color: rgb(34, 44, 120);
/* oklch */ color: oklch(33.6% 0.129 271.8);
Tailwind
colors: {
  custom: {
    50: '#6a65a0',
    500: '#222c78',
    950: '#000000',
  },
}
SCSS
$custom: #222c78;
$custom-light: #6a65a0;
$custom-dark: #000000;
JSON
{
  "hex": "#222c78",
  "rgb": {
    "r": 34,
    "g": 44,
    "b": 120
  },
  "hsl": {
    "h": 233.023,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33618,
    "c": 0.12907,
    "h": 271.8
  },
  "luminance": 0.03498
}

Semantic roles & 50–950 ramp

primary
#222C78
secondary
#ABA04B
accent
#CE49DF
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #222C78

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

Preview Lab → · Contrast checker → · Palette generator →

#222C78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva