#161F4D#161F4D

#161F4D is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.2% C 0.085 H 271.0°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#161F4D
RGBrgb(22, 31, 77)
HSLhsl(230, 56%, 19%)
HSVhsv(230, 71%, 30%)
CMYKcmyk(71.4%, 59.7%, 0%, 69.8%)
CIE-LABlab(13.75, 13.41, -29.71)
CIE-LCHlch(13.75, 32.59, 294.30°)
OKLaboklab(26.15% 0.0015 -0.0853)
OKLCHoklch(26.15% 0.085 271)
XYZxyz(2.1600, 1.6862, 7.2314)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F4D #4D4416
analogous
#163B4D #161F4D #29164D
triadic
#161F4D #4D161F #1F4D16
tetradic
#161F4D #4D163B #4D4416 #164D29
square
#161F4D #4D163B #4D4416 #164D29
split-complementary
#161F4D #4D2916 #3B4D16
monochromatic
#070A18 #080C1D #161F4D #24327D #3145AC

Accessibility & contrast

On white

15.70
#161F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #161F4D
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F4D#FFFFFF#000000##FFFFFF
##161F4D1.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01264F
Deuteranopia (green-blind)
#00214C
Tritanopia (blue-blind)
#002A32
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #161f4d;
/* rgb */ color: rgb(22, 31, 77);
/* oklch */ color: oklch(26.2% 0.085 271.0);
Tailwind
colors: {
  custom: {
    50: '#5b5a7f',
    500: '#161f4d',
    950: '#000000',
  },
}
SCSS
$custom: #161f4d;
$custom-light: #5b5a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#161f4d",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 77
  },
  "hsl": {
    "h": 230.182,
    "s": 55.556,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26154,
    "c": 0.08535,
    "h": 271
  },
  "luminance": 0.01686
}

Semantic roles & 50–950 ramp

primary
#161F4D
secondary
#85783A
accent
#C649DF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #161F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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