#222F71#222F71

#222F71 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.6% C 0.115 H 270.6°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#222F71
RGBrgb(34, 47, 113)
HSLhsl(230, 54%, 29%)
HSVhsv(230, 70%, 44%)
CMYKcmyk(69.9%, 58.4%, 0%, 55.7%)
CIE-LABlab(22.18, 18.39, -39.85)
CIE-LCHlch(22.18, 43.89, 294.77°)
OKLaboklab(33.62% 0.0012 -0.1146)
OKLCHoklch(33.62% 0.115 270.6)
XYZxyz(4.6558, 3.5649, 16.0623)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222F71 #716422
analogous
#225771 #222F71 #3D2271
triadic
#222F71 #71222F #2F7122
tetradic
#222F71 #712257 #716422 #22713D
square
#222F71 #712257 #716422 #22713D
split-complementary
#222F71 #713D22 #577122
monochromatic
#070A18 #141B42 #222F71 #3043A0 #465BC7

Accessibility & contrast

On white

12.26
#222F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#222F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222F71
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222F71#FFFFFF#000000##FFFFFF
##222F711.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #222f71;
/* rgb */ color: rgb(34, 47, 113);
/* oklch */ color: oklch(33.6% 0.115 270.6);
Tailwind
colors: {
  custom: {
    50: '#68679a',
    500: '#222f71',
    950: '#000000',
  },
}
SCSS
$custom: #222f71;
$custom-light: #68679a;
$custom-dark: #000000;
JSON
{
  "hex": "#222f71",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 230.127,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33615,
    "c": 0.11465,
    "h": 270.6
  },
  "luminance": 0.03565
}

Semantic roles & 50–950 ramp

primary
#222F71
secondary
#A4964A
accent
#C54BDD
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #222F71

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

Preview Lab → · Contrast checker → · Palette generator →

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