#222879#222879

#222879 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.136 H 273.0°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#222879
RGBrgb(34, 40, 121)
HSLhsl(236, 56%, 30%)
HSVhsv(236, 72%, 47%)
CMYKcmyk(71.9%, 66.9%, 0%, 52.5%)
CIE-LABlab(20.97, 26.33, -46.94)
CIE-LCHlch(20.97, 53.82, 299.29°)
OKLaboklab(32.94% 0.0072 -0.1355)
OKLCHoklch(32.94% 0.136 273)
XYZxyz(4.8685, 3.2377, 18.4538)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222879 #797322
analogous
#225379 #222879 #472279
triadic
#222879 #792228 #287922
tetradic
#222879 #792253 #797322 #227947
square
#222879 #792253 #797322 #227947
split-complementary
#222879 #794722 #537922
monochromatic
#070819 #151849 #222879 #2F38A9 #4952CC

Accessibility & contrast

On white

12.75
#222879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#222879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222879
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222879#FFFFFF#000000##FFFFFF
##2228791.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#002E77
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #222879;
/* rgb */ color: rgb(34, 40, 121);
/* oklch */ color: oklch(32.9% 0.136 273.0);
Tailwind
colors: {
  custom: {
    50: '#6a62a0',
    500: '#222879',
    950: '#000000',
  },
}
SCSS
$custom: #222879;
$custom-light: #6a62a0;
$custom-dark: #000000;
JSON
{
  "hex": "#222879",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 121
  },
  "hsl": {
    "h": 235.862,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32938,
    "c": 0.13571,
    "h": 273
  },
  "luminance": 0.03238
}

Semantic roles & 50–950 ramp

primary
#222879
secondary
#ACA54B
accent
#D548DF
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #222879

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

Preview Lab → · Contrast checker → · Palette generator →

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