#161B54#161B54

#161B54 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.9% C 0.102 H 273.1°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#161B54
RGBrgb(22, 27, 84)
HSLhsl(235, 58%, 21%)
HSVhsv(235, 74%, 33%)
CMYKcmyk(73.8%, 67.9%, 0%, 67.1%)
CIE-LABlab(13.20, 19.25, -35.38)
CIE-LCHlch(13.20, 40.28, 298.55°)
OKLaboklab(25.94% 0.0055 -0.1021)
OKLCHoklch(25.94% 0.102 273.1)
XYZxyz(2.3225, 1.5943, 8.5711)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161B54 #544F16
analogous
#163A54 #161B54 #301654
triadic
#161B54 #54161B #1B5416
tetradic
#161B54 #54163A #544F16 #165430
square
#161B54 #54163A #544F16 #165430
split-complementary
#161B54 #543016 #3A5416
monochromatic
#060818 #090B24 #161B54 #232B84 #2F3AB5

Accessibility & contrast

On white

15.92
#161B54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#161B54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161B54
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161B54#FFFFFF#000000##FFFFFF
##161B541.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#001F53
Tritanopia (blue-blind)
#002934
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #161b54;
/* rgb */ color: rgb(22, 27, 84);
/* oklch */ color: oklch(25.9% 0.102 273.1);
Tailwind
colors: {
  custom: {
    50: '#5d5785',
    500: '#161b54',
    950: '#000000',
  },
}
SCSS
$custom: #161b54;
$custom-light: #5d5785;
$custom-dark: #000000;
JSON
{
  "hex": "#161b54",
  "rgb": {
    "r": 22,
    "g": 27,
    "b": 84
  },
  "hsl": {
    "h": 235.161,
    "s": 58.491,
    "l": 20.784
  },
  "oklch": {
    "l": 0.2594,
    "c": 0.10221,
    "h": 273.1
  },
  "luminance": 0.01595
}

Semantic roles & 50–950 ramp

primary
#161B54
secondary
#8B853A
accent
#D546E2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #161B54

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

Preview Lab → · Contrast checker → · Palette generator →

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