#161B5F#161B5F

#161B5F is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.1% C 0.119 H 272.2°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#161B5F
RGBrgb(22, 27, 95)
HSLhsl(236, 62%, 23%)
HSVhsv(236, 77%, 37%)
CMYKcmyk(76.8%, 71.6%, 0%, 62.7%)
CIE-LABlab(14.29, 23.64, -40.98)
CIE-LCHlch(14.29, 47.31, 299.97°)
OKLaboklab(27.08% 0.0046 -0.1185)
OKLCHoklch(27.08% 0.119 272.2)
XYZxyz(2.7877, 1.7804, 11.0210)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161B5F #5F5A16
analogous
#163F5F #161B5F #35165F
triadic
#161B5F #5F161B #1B5F16
tetradic
#161B5F #5F163F #5F5A16 #165F35
square
#161B5F #5F163F #5F5A16 #165F35
split-complementary
#161B5F #5F3516 #3F5F16
monochromatic
#060719 #0A0D2D #161B5F #222991 #2D37C2

Accessibility & contrast

On white

15.48
#161B5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#161B5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161B5F
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161B5F#FFFFFF#000000##FFFFFF
##161B5F1.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002861
Deuteranopia (green-blind)
#00215E
Tritanopia (blue-blind)
#002D3A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #161b5f;
/* rgb */ color: rgb(22, 27, 95);
/* oklch */ color: oklch(27.1% 0.119 272.2);
Tailwind
colors: {
  custom: {
    50: '#60578d',
    500: '#161b5f',
    950: '#000000',
  },
}
SCSS
$custom: #161b5f;
$custom-light: #60578d;
$custom-dark: #000000;
JSON
{
  "hex": "#161b5f",
  "rgb": {
    "r": 22,
    "g": 27,
    "b": 95
  },
  "hsl": {
    "h": 235.89,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27077,
    "c": 0.11857,
    "h": 272.2
  },
  "luminance": 0.01781
}

Semantic roles & 50–950 ramp

primary
#161B5F
secondary
#96903B
accent
#DA42E5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #161B5F

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

Preview Lab → · Contrast checker → · Palette generator →

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