#222F78#222F78

#222F78 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.125 H 270.6°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#222F78
RGBrgb(34, 47, 120)
HSLhsl(231, 56%, 30%)
HSVhsv(231, 72%, 47%)
CMYKcmyk(71.7%, 60.8%, 0%, 52.9%)
CIE-LABlab(22.75, 21.12, -43.39)
CIE-LCHlch(22.75, 48.26, 295.95°)
OKLaboklab(34.23% 0.0014 -0.125)
OKLCHoklch(34.23% 0.125 270.6)
XYZxyz(5.0652, 3.7287, 18.2184)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222F78 #786B22
analogous
#225A78 #222F78 #402278
triadic
#222F78 #78222F #2F7822
tetradic
#222F78 #78225A #786B22 #227840
square
#222F78 #78225A #786B22 #227840
split-complementary
#222F78 #784022 #5A7822
monochromatic
#070A19 #141C48 #222F78 #3042A8 #495DCB

Accessibility & contrast

On white

12.03
#222F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#222F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222F78
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222F78#FFFFFF#000000##FFFFFF
##222F781.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7A
Deuteranopia (green-blind)
#003377
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #222f78;
/* rgb */ color: rgb(34, 47, 120);
/* oklch */ color: oklch(34.2% 0.125 270.6);
Tailwind
colors: {
  custom: {
    50: '#6967a0',
    500: '#222f78',
    950: '#000000',
  },
}
SCSS
$custom: #222f78;
$custom-light: #6967a0;
$custom-dark: #000000;
JSON
{
  "hex": "#222f78",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 230.93,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34226,
    "c": 0.12506,
    "h": 270.6
  },
  "luminance": 0.03729
}

Semantic roles & 50–950 ramp

primary
#222F78
secondary
#AB9C4B
accent
#C849DF
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #222F78

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

Preview Lab → · Contrast checker → · Palette generator →

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