#222F79#222F79

#222F79 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.3% C 0.127 H 270.6°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#222F79
RGBrgb(34, 47, 121)
HSLhsl(231, 56%, 30%)
HSVhsv(231, 72%, 47%)
CMYKcmyk(71.9%, 61.2%, 0%, 52.5%)
CIE-LABlab(22.84, 21.51, -43.89)
CIE-LCHlch(22.84, 48.88, 296.10°)
OKLaboklab(34.32% 0.0014 -0.1265)
OKLCHoklch(34.32% 0.127 270.6)
XYZxyz(5.1262, 3.7531, 18.5397)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222F79 #796C22
analogous
#225B79 #222F79 #402279
triadic
#222F79 #79222F #2F7922
tetradic
#222F79 #79225B #796C22 #227940
square
#222F79 #79225B #796C22 #227940
split-complementary
#222F79 #794022 #5B7922
monochromatic
#070A19 #151C49 #222F79 #2F42A9 #495DCC

Accessibility & contrast

On white

11.99
#222F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222F79
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222F79#FFFFFF#000000##FFFFFF
##222F791.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7B
Deuteranopia (green-blind)
#003378
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #222f79;
/* rgb */ color: rgb(34, 47, 121);
/* oklch */ color: oklch(34.3% 0.127 270.6);
Tailwind
colors: {
  custom: {
    50: '#6967a0',
    500: '#222f79',
    950: '#000000',
  },
}
SCSS
$custom: #222f79;
$custom-light: #6967a0;
$custom-dark: #000000;
JSON
{
  "hex": "#222f79",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 121
  },
  "hsl": {
    "h": 231.034,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34315,
    "c": 0.12652,
    "h": 270.6
  },
  "luminance": 0.03754
}

Semantic roles & 50–950 ramp

primary
#222F79
secondary
#AC9D4B
accent
#C948DF
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #222F79

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

Preview Lab → · Contrast checker → · Palette generator →

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