#161B5B#161B5B

#161B5B is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.7% C 0.113 H 272.5°. Best body text is #FFFFFF at 15.65:1 contrast (WCAG AA passes).

Color values

HEX#161B5B
RGBrgb(22, 27, 91)
HSLhsl(236, 61%, 22%)
HSVhsv(236, 76%, 36%)
CMYKcmyk(75.8%, 70.3%, 0%, 64.3%)
CIE-LABlab(13.88, 22.05, -38.98)
CIE-LCHlch(13.88, 44.78, 299.50°)
OKLaboklab(26.66% 0.005 -0.1126)
OKLCHoklch(26.66% 0.113 272.5)
XYZxyz(2.6105, 1.7095, 10.0879)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161B5B #5B5616
analogous
#163E5B #161B5B #34165B
triadic
#161B5B #5B161B #1B5B16
tetradic
#161B5B #5B163E #5B5616 #165B34
square
#161B5B #5B163E #5B5616 #165B34
split-complementary
#161B5B #5B3416 #3E5B16
monochromatic
#060719 #0A0C2A #161B5B #222A8C #2E38BE

Accessibility & contrast

On white

15.65
#161B5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#161B5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161B5B
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161B5B#FFFFFF#000000##FFFFFF
##161B5B1.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#00205A
Tritanopia (blue-blind)
#002C38
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #161b5b;
/* rgb */ color: rgb(22, 27, 91);
/* oklch */ color: oklch(26.7% 0.113 272.5);
Tailwind
colors: {
  custom: {
    50: '#5f578a',
    500: '#161b5b',
    950: '#000000',
  },
}
SCSS
$custom: #161b5b;
$custom-light: #5f578a;
$custom-dark: #000000;
JSON
{
  "hex": "#161b5b",
  "rgb": {
    "r": 22,
    "g": 27,
    "b": 91
  },
  "hsl": {
    "h": 235.652,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26656,
    "c": 0.11272,
    "h": 272.5
  },
  "luminance": 0.0171
}

Semantic roles & 50–950 ramp

primary
#161B5B
secondary
#928C3B
accent
#D944E4
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #161B5B

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

Preview Lab → · Contrast checker → · Palette generator →

#161B5B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva