#222F77#222F77

#222F77 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.124 H 270.6°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#222F77
RGBrgb(34, 47, 119)
HSLhsl(231, 56%, 30%)
HSVhsv(231, 71%, 47%)
CMYKcmyk(71.4%, 60.5%, 0%, 53.3%)
CIE-LABlab(22.67, 20.73, -42.89)
CIE-LCHlch(22.67, 47.64, 295.79°)
OKLaboklab(34.14% 0.0014 -0.1236)
OKLCHoklch(34.14% 0.124 270.6)
XYZxyz(5.0048, 3.7045, 17.9005)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222F77 #776A22
analogous
#225977 #222F77 #402277
triadic
#222F77 #77222F #2F7722
tetradic
#222F77 #772259 #776A22 #227740
square
#222F77 #772259 #776A22 #227740
split-complementary
#222F77 #774022 #597722
monochromatic
#070918 #141C47 #222F77 #3042A7 #495CCB

Accessibility & contrast

On white

12.06
#222F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#222F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222F77
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222F77#FFFFFF#000000##FFFFFF
##222F771.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A79
Deuteranopia (green-blind)
#003276
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #222f77;
/* rgb */ color: rgb(34, 47, 119);
/* oklch */ color: oklch(34.1% 0.124 270.6);
Tailwind
colors: {
  custom: {
    50: '#69679f',
    500: '#222f77',
    950: '#000000',
  },
}
SCSS
$custom: #222f77;
$custom-light: #69679f;
$custom-dark: #000000;
JSON
{
  "hex": "#222f77",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 119
  },
  "hsl": {
    "h": 230.824,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.34137,
    "c": 0.12359,
    "h": 270.6
  },
  "luminance": 0.03705
}

Semantic roles & 50–950 ramp

primary
#222F77
secondary
#AA9B4B
accent
#C849DF
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #222F77

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

Preview Lab → · Contrast checker → · Palette generator →

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