#222F7E#222F7E

#222F7E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.134 H 270.6°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#222F7E
RGBrgb(34, 47, 126)
HSLhsl(232, 58%, 31%)
HSVhsv(232, 73%, 49%)
CMYKcmyk(73%, 62.7%, 0%, 50.6%)
CIE-LABlab(23.27, 23.44, -46.36)
CIE-LCHlch(23.27, 51.95, 296.83°)
OKLaboklab(34.77% 0.0014 -0.1338)
OKLCHoklch(34.77% 0.134 270.6)
XYZxyz(5.4408, 3.8789, 20.1966)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222F7E #7E7122
analogous
#225D7E #222F7E #43227E
triadic
#222F7E #7E222F #2F7E22
tetradic
#222F7E #7E225D #7E7122 #227E43
square
#222F7E #7E225D #7E7122 #227E43
split-complementary
#222F7E #7E4322 #5D7E22
monochromatic
#080B1E #151D4E #222F7E #2F41AE #4C5ECF

Accessibility & contrast

On white

11.83
#222F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#222F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222F7E
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222F7E#FFFFFF#000000##FFFFFF
##222F7E1.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #222f7e;
/* rgb */ color: rgb(34, 47, 126);
/* oklch */ color: oklch(34.8% 0.134 270.6);
Tailwind
colors: {
  custom: {
    50: '#6b67a4',
    500: '#222f7e',
    950: '#000000',
  },
}
SCSS
$custom: #222f7e;
$custom-light: #6b67a4;
$custom-dark: #000000;
JSON
{
  "hex": "#222f7e",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 231.522,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34768,
    "c": 0.13377,
    "h": 270.6
  },
  "luminance": 0.03879
}

Semantic roles & 50–950 ramp

primary
#222F7E
secondary
#B1A24B
accent
#CB47E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #222F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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