#162D61#162D61

#162D61 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.2% C 0.097 H 263.8°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#162D61
RGBrgb(22, 45, 97)
HSLhsl(222, 63%, 23%)
HSVhsv(222, 77%, 38%)
CMYKcmyk(77.3%, 53.6%, 0%, 62%)
CIE-LABlab(19.68, 11.38, -33.53)
CIE-LCHlch(19.68, 35.41, 288.74°)
OKLaboklab(31.15% -0.0105 -0.0964)
OKLCHoklch(31.15% 0.097 263.8)
XYZxyz(3.4262, 2.9100, 11.6881)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#162D61 #614A16
analogous
#165261 #162D61 #241661
triadic
#162D61 #61162D #2D6116
tetradic
#162D61 #611652 #614A16 #166124
square
#162D61 #611652 #614A16 #166124
split-complementary
#162D61 #612416 #526116
monochromatic
#060C19 #0B162F #162D61 #214493 #2D5BC5

Accessibility & contrast

On white

13.27
#162D61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#162D61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #162D61
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##162D61#FFFFFF#000000##FFFFFF
##162D611.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3363
Deuteranopia (green-blind)
#002C60
Tritanopia (blue-blind)
#003942
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #162d61;
/* rgb */ color: rgb(22, 45, 97);
/* oklch */ color: oklch(31.2% 0.097 263.8);
Tailwind
colors: {
  custom: {
    50: '#5f658e',
    500: '#162d61',
    950: '#000000',
  },
}
SCSS
$custom: #162d61;
$custom-light: #5f658e;
$custom-dark: #000000;
JSON
{
  "hex": "#162d61",
  "rgb": {
    "r": 22,
    "g": 45,
    "b": 97
  },
  "hsl": {
    "h": 221.6,
    "s": 63.025,
    "l": 23.333
  },
  "oklch": {
    "l": 0.31153,
    "c": 0.09694,
    "h": 263.8
  },
  "luminance": 0.0291
}

Semantic roles & 50–950 ramp

primary
#162D61
secondary
#987B3B
accent
#B442E6
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05050C
muted
#797A7D

Preview Lab

Preview with #162D61

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

Preview Lab → · Contrast checker → · Palette generator →

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