#222779#222779

#222779 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.137 H 273.3°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#222779
RGBrgb(34, 39, 121)
HSLhsl(237, 56%, 30%)
HSVhsv(237, 72%, 47%)
CMYKcmyk(71.9%, 67.8%, 0%, 52.5%)
CIE-LABlab(20.72, 27.01, -47.35)
CIE-LCHlch(20.72, 54.51, 299.70°)
OKLaboklab(32.75% 0.0079 -0.1367)
OKLCHoklch(32.75% 0.137 273.3)
XYZxyz(4.8352, 3.1711, 18.4427)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222779 #797422
analogous
#225279 #222779 #492279
triadic
#222779 #792227 #277922
tetradic
#222779 #792252 #797422 #227949
square
#222779 #792252 #797422 #227949
split-complementary
#222779 #794922 #527922
monochromatic
#070819 #151849 #222779 #2F36A9 #4951CC

Accessibility & contrast

On white

12.85
#222779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#222779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222779
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222779#FFFFFF#000000##FFFFFF
##2227791.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222779;
/* rgb */ color: rgb(34, 39, 121);
/* oklch */ color: oklch(32.8% 0.137 273.3);
Tailwind
colors: {
  custom: {
    50: '#6a61a1',
    500: '#222779',
    950: '#000000',
  },
}
SCSS
$custom: #222779;
$custom-light: #6a61a1;
$custom-dark: #000000;
JSON
{
  "hex": "#222779",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 121
  },
  "hsl": {
    "h": 236.552,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32752,
    "c": 0.13698,
    "h": 273.3
  },
  "luminance": 0.03172
}

Semantic roles & 50–950 ramp

primary
#222779
secondary
#ACA64B
accent
#D748DF
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #222779

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

Preview Lab → · Contrast checker → · Palette generator →

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