#222A77#222A77

#222A77 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.130 H 272.5°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#222A77
RGBrgb(34, 42, 119)
HSLhsl(234, 56%, 30%)
HSVhsv(234, 71%, 47%)
CMYKcmyk(71.4%, 64.7%, 0%, 53.3%)
CIE-LABlab(21.31, 24.20, -45.11)
CIE-LCHlch(21.31, 51.19, 298.22°)
OKLaboklab(33.13% 0.0057 -0.1301)
OKLCHoklch(33.13% 0.13 272.5)
XYZxyz(4.8163, 3.3275, 17.8376)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222A77 #776F22
analogous
#225477 #222A77 #452277
triadic
#222A77 #77222A #2A7722
tetradic
#222A77 #772254 #776F22 #227745
square
#222A77 #772254 #776F22 #227745
split-complementary
#222A77 #774522 #547722
monochromatic
#070818 #141947 #222A77 #303BA7 #4955CB

Accessibility & contrast

On white

12.61
#222A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#222A77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222A77
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222A77#FFFFFF#000000##FFFFFF
##222A771.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003779
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#003E4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #222a77;
/* rgb */ color: rgb(34, 42, 119);
/* oklch */ color: oklch(33.1% 0.130 272.5);
Tailwind
colors: {
  custom: {
    50: '#69639f',
    500: '#222a77',
    950: '#000000',
  },
}
SCSS
$custom: #222a77;
$custom-light: #69639f;
$custom-dark: #000000;
JSON
{
  "hex": "#222a77",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 119
  },
  "hsl": {
    "h": 234.353,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.3313,
    "c": 0.13026,
    "h": 272.5
  },
  "luminance": 0.03328
}

Semantic roles & 50–950 ramp

primary
#222A77
secondary
#AAA14B
accent
#D149DF
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #222A77

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

Preview Lab → · Contrast checker → · Palette generator →

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