#222C77#222C77

#222C77 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.5% C 0.128 H 271.8°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#222C77
RGBrgb(34, 44, 119)
HSLhsl(233, 56%, 30%)
HSVhsv(233, 71%, 47%)
CMYKcmyk(71.4%, 63%, 0%, 53.3%)
CIE-LABlab(21.85, 22.82, -44.23)
CIE-LCHlch(21.85, 49.77, 297.29°)
OKLaboklab(33.53% 0.004 -0.1275)
OKLCHoklch(33.53% 0.128 271.8)
XYZxyz(4.8890, 3.4729, 17.8619)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222C77 #776D22
analogous
#225777 #222C77 #422277
triadic
#222C77 #77222C #2C7722
tetradic
#222C77 #772257 #776D22 #227742
square
#222C77 #772257 #776D22 #227742
split-complementary
#222C77 #774222 #577722
monochromatic
#070918 #141A47 #222C77 #303EA7 #4958CB

Accessibility & contrast

On white

12.39
#222C77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#222C77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222C77
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222C77#FFFFFF#000000##FFFFFF
##222C771.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003879
Deuteranopia (green-blind)
#003176
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #222c77;
/* rgb */ color: rgb(34, 44, 119);
/* oklch */ color: oklch(33.5% 0.128 271.8);
Tailwind
colors: {
  custom: {
    50: '#69659f',
    500: '#222c77',
    950: '#000000',
  },
}
SCSS
$custom: #222c77;
$custom-light: #69659f;
$custom-dark: #000000;
JSON
{
  "hex": "#222c77",
  "rgb": {
    "r": 34,
    "g": 44,
    "b": 119
  },
  "hsl": {
    "h": 232.941,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.33526,
    "c": 0.12761,
    "h": 271.8
  },
  "luminance": 0.03473
}

Semantic roles & 50–950 ramp

primary
#222C77
secondary
#AA9F4B
accent
#CD49DF
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #222C77

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

Preview Lab → · Contrast checker → · Palette generator →

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