#162E71#162E71

#162E71 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.8% C 0.120 H 265.3°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#162E71
RGBrgb(22, 46, 113)
HSLhsl(224, 67%, 26%)
HSVhsv(224, 81%, 44%)
CMYKcmyk(80.5%, 59.3%, 0%, 55.7%)
CIE-LABlab(21.27, 17.35, -41.36)
CIE-LCHlch(21.27, 44.85, 292.76°)
OKLaboklab(32.76% -0.0098 -0.1193)
OKLCHoklch(32.76% 0.12 265.3)
XYZxyz(4.2875, 3.3163, 16.0337)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162E71 #715916
analogous
#165C71 #162E71 #2C1671
triadic
#162E71 #71162E #2E7116
tetradic
#162E71 #71165C #715916 #16712C
square
#162E71 #71165C #715916 #16712C
split-complementary
#162E71 #712C16 #5C7116
monochromatic
#050A1A #0C193E #162E71 #2043A4 #2C58D6

Accessibility & contrast

On white

12.62
#162E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#162E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162E71
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162E71#FFFFFF#000000##FFFFFF
##162E711.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#003F4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #162e71;
/* rgb */ color: rgb(22, 46, 113);
/* oklch */ color: oklch(32.8% 0.120 265.3);
Tailwind
colors: {
  custom: {
    50: '#63669a',
    500: '#162e71',
    950: '#000000',
  },
}
SCSS
$custom: #162e71;
$custom-light: #63669a;
$custom-dark: #000000;
JSON
{
  "hex": "#162e71",
  "rgb": {
    "r": 22,
    "g": 46,
    "b": 113
  },
  "hsl": {
    "h": 224.176,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32763,
    "c": 0.11976,
    "h": 265.3
  },
  "luminance": 0.03317
}

Semantic roles & 50–950 ramp

primary
#162E71
secondary
#A78B3C
accent
#BD3EEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #162E71

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

Preview Lab → · Contrast checker → · Palette generator →

#162E71 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva