#162F61#162F61

#162F61 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.6% C 0.094 H 262.4°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#162F61
RGBrgb(22, 47, 97)
HSLhsl(220, 63%, 23%)
HSVhsv(220, 77%, 38%)
CMYKcmyk(77.3%, 51.5%, 0%, 62%)
CIE-LABlab(20.31, 9.92, -32.52)
CIE-LCHlch(20.31, 34.00, 286.96°)
OKLaboklab(31.63% -0.0125 -0.0933)
OKLCHoklch(31.63% 0.094 262.4)
XYZxyz(3.5043, 3.0663, 11.7141)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162F61 #614816
analogous
#165461 #162F61 #221661
triadic
#162F61 #61162F #2F6116
tetradic
#162F61 #611654 #614816 #166122
square
#162F61 #611654 #614816 #166122
split-complementary
#162F61 #612216 #546116
monochromatic
#060C19 #0B172F #162F61 #214793 #2D5FC5

Accessibility & contrast

On white

13.02
#162F61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#162F61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162F61
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162F61#FFFFFF#000000##FFFFFF
##162F611.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133563
Deuteranopia (green-blind)
#012E60
Tritanopia (blue-blind)
#003B43
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #162f61;
/* rgb */ color: rgb(22, 47, 97);
/* oklch */ color: oklch(31.6% 0.094 262.4);
Tailwind
colors: {
  custom: {
    50: '#5f678e',
    500: '#162f61',
    950: '#000000',
  },
}
SCSS
$custom: #162f61;
$custom-light: #5f678e;
$custom-dark: #000000;
JSON
{
  "hex": "#162f61",
  "rgb": {
    "r": 22,
    "g": 47,
    "b": 97
  },
  "hsl": {
    "h": 220,
    "s": 63.025,
    "l": 23.333
  },
  "oklch": {
    "l": 0.31633,
    "c": 0.09417,
    "h": 262.4
  },
  "luminance": 0.03067
}

Semantic roles & 50–950 ramp

primary
#162F61
secondary
#98793B
accent
#AF42E6
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #162F61

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

Preview Lab → · Contrast checker → · Palette generator →

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