#222A78#222A78

#222A78 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.2% C 0.132 H 272.5°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#222A78
RGBrgb(34, 42, 120)
HSLhsl(234, 56%, 30%)
HSVhsv(234, 72%, 47%)
CMYKcmyk(71.7%, 65%, 0%, 52.9%)
CIE-LABlab(21.40, 24.59, -45.60)
CIE-LCHlch(21.40, 51.80, 298.33°)
OKLaboklab(33.22% 0.0056 -0.1316)
OKLCHoklch(33.22% 0.132 272.5)
XYZxyz(4.8767, 3.3516, 18.1556)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222A78 #787022
analogous
#225578 #222A78 #452278
triadic
#222A78 #78222A #2A7822
tetradic
#222A78 #782255 #787022 #227845
square
#222A78 #782255 #787022 #227845
split-complementary
#222A78 #784522 #557822
monochromatic
#070919 #141948 #222A78 #303BA8 #4955CB

Accessibility & contrast

On white

12.57
#222A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#222A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222A78
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222A78#FFFFFF#000000##FFFFFF
##222A781.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#003E4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #222a78;
/* rgb */ color: rgb(34, 42, 120);
/* oklch */ color: oklch(33.2% 0.132 272.5);
Tailwind
colors: {
  custom: {
    50: '#6a63a0',
    500: '#222a78',
    950: '#000000',
  },
}
SCSS
$custom: #222a78;
$custom-light: #6a63a0;
$custom-dark: #000000;
JSON
{
  "hex": "#222a78",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 234.419,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33224,
    "c": 0.1317,
    "h": 272.5
  },
  "luminance": 0.03352
}

Semantic roles & 50–950 ramp

primary
#222A78
secondary
#ABA24B
accent
#D149DF
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #222A78

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

Preview Lab → · Contrast checker → · Palette generator →

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