#162F71#162F71

#162F71 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.0% C 0.118 H 264.8°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#162F71
RGBrgb(22, 47, 113)
HSLhsl(224, 67%, 26%)
HSVhsv(224, 81%, 44%)
CMYKcmyk(80.5%, 58.4%, 0%, 55.7%)
CIE-LABlab(21.56, 16.63, -40.88)
CIE-LCHlch(21.56, 44.13, 292.13°)
OKLaboklab(32.98% -0.0106 -0.1179)
OKLCHoklch(32.98% 0.118 264.8)
XYZxyz(4.3270, 3.3954, 16.0469)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162F71 #715816
analogous
#165D71 #162F71 #2B1671
triadic
#162F71 #71162F #2F7116
tetradic
#162F71 #71165D #715816 #16712B
square
#162F71 #71165D #715816 #16712B
split-complementary
#162F71 #712B16 #5D7116
monochromatic
#050B1A #0C1A3E #162F71 #2044A4 #2C5AD6

Accessibility & contrast

On white

12.51
#162F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#162F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162F71
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162F71#FFFFFF#000000##FFFFFF
##162F711.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#003070
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #162f71;
/* rgb */ color: rgb(22, 47, 113);
/* oklch */ color: oklch(33.0% 0.118 264.8);
Tailwind
colors: {
  custom: {
    50: '#63679a',
    500: '#162f71',
    950: '#000000',
  },
}
SCSS
$custom: #162f71;
$custom-light: #63679a;
$custom-dark: #000000;
JSON
{
  "hex": "#162f71",
  "rgb": {
    "r": 22,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 223.516,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32984,
    "c": 0.11841,
    "h": 264.8
  },
  "luminance": 0.03396
}

Semantic roles & 50–950 ramp

primary
#162F71
secondary
#A78A3C
accent
#BB3EEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #162F71

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

Preview Lab → · Contrast checker → · Palette generator →

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