#222479#222479

#222479 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.141 H 274.1°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#222479
RGBrgb(34, 36, 121)
HSLhsl(239, 56%, 30%)
HSVhsv(239, 72%, 47%)
CMYKcmyk(71.9%, 70.2%, 0%, 52.5%)
CIE-LABlab(19.97, 29.00, -48.58)
CIE-LCHlch(19.97, 56.57, 300.84°)
OKLaboklab(32.21% 0.0102 -0.1403)
OKLCHoklch(32.21% 0.141 274.1)
XYZxyz(4.7406, 2.9819, 18.4112)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222479 #797722
analogous
#224F79 #222479 #4C2279
triadic
#222479 #792224 #247922
tetradic
#222479 #79224F #797722 #22794C
square
#222479 #79224F #797722 #22794C
split-complementary
#222479 #794C22 #4F7922
monochromatic
#070819 #151649 #222479 #2F32A9 #494CCC

Accessibility & contrast

On white

13.15
#222479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#222479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222479
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222479#FFFFFF#000000##FFFFFF
##2224791.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#002C77
Tritanopia (blue-blind)
#003B4B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #222479;
/* rgb */ color: rgb(34, 36, 121);
/* oklch */ color: oklch(32.2% 0.141 274.1);
Tailwind
colors: {
  custom: {
    50: '#6b5fa1',
    500: '#222479',
    950: '#000000',
  },
}
SCSS
$custom: #222479;
$custom-light: #6b5fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#222479",
  "rgb": {
    "r": 34,
    "g": 36,
    "b": 121
  },
  "hsl": {
    "h": 238.621,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3221,
    "c": 0.14071,
    "h": 274.1
  },
  "luminance": 0.02982
}

Semantic roles & 50–950 ramp

primary
#222479
secondary
#ACAA4B
accent
#DC48DF
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #222479

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

Preview Lab → · Contrast checker → · Palette generator →

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