#222774#222774

#222774 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.3% C 0.130 H 273.7°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#222774
RGBrgb(34, 39, 116)
HSLhsl(236, 55%, 29%)
HSVhsv(236, 71%, 45%)
CMYKcmyk(70.7%, 66.4%, 0%, 54.5%)
CIE-LABlab(20.25, 25.12, -44.92)
CIE-LCHlch(20.25, 51.47, 299.22°)
OKLaboklab(32.27% 0.0083 -0.1296)
OKLCHoklch(32.27% 0.13 273.7)
XYZxyz(4.5365, 3.0517, 16.8696)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222774 #746F22
analogous
#225074 #222774 #462274
triadic
#222774 #742227 #277422
tetradic
#222774 #742250 #746F22 #227446
square
#222774 #742250 #746F22 #227446
split-complementary
#222774 #744622 #507422
monochromatic
#070818 #141745 #222774 #3037A3 #474FC9

Accessibility & contrast

On white

13.04
#222774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#222774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222774
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222774#FFFFFF#000000##FFFFFF
##2227741.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003576
Deuteranopia (green-blind)
#002D73
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #222774;
/* rgb */ color: rgb(34, 39, 116);
/* oklch */ color: oklch(32.3% 0.130 273.7);
Tailwind
colors: {
  custom: {
    50: '#69619d',
    500: '#222774',
    950: '#000000',
  },
}
SCSS
$custom: #222774;
$custom-light: #69619d;
$custom-dark: #000000;
JSON
{
  "hex": "#222774",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 116
  },
  "hsl": {
    "h": 236.341,
    "s": 54.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32266,
    "c": 0.12988,
    "h": 273.7
  },
  "luminance": 0.03052
}

Semantic roles & 50–950 ramp

primary
#222774
secondary
#A7A24B
accent
#D54ADE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #222774

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

Preview Lab → · Contrast checker → · Palette generator →

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