#161F4F#161F4F

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

Color values

HEX#161F4F
RGBrgb(22, 31, 79)
HSLhsl(231, 56%, 20%)
HSVhsv(231, 72%, 31%)
CMYKcmyk(72.2%, 60.8%, 0%, 69%)
CIE-LABlab(13.91, 14.24, -30.80)
CIE-LCHlch(13.91, 33.94, 294.81°)
OKLaboklab(26.33% 0.0016 -0.0886)
OKLCHoklch(26.33% 0.089 271)
XYZxyz(2.2317, 1.7149, 7.6090)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F4F #4F4616
analogous
#163C4F #161F4F #29164F
triadic
#161F4F #4F161F #1F4F16
tetradic
#161F4F #4F163C #4F4616 #164F29
square
#161F4F #4F163C #4F4616 #164F29
split-complementary
#161F4F #4F2916 #3C4F16
monochromatic
#070918 #090C1F #161F4F #23327F #3145AF

Accessibility & contrast

On white

15.64
#161F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #161F4F
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F4F#FFFFFF#000000##FFFFFF
##161F4F1.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002651
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#002B33
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #161f4f;
/* rgb */ color: rgb(22, 31, 79);
/* oklch */ color: oklch(26.3% 0.089 271.0);
Tailwind
colors: {
  custom: {
    50: '#5b5a81',
    500: '#161f4f',
    950: '#000000',
  },
}
SCSS
$custom: #161f4f;
$custom-light: #5b5a81;
$custom-dark: #000000;
JSON
{
  "hex": "#161f4f",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 79
  },
  "hsl": {
    "h": 230.526,
    "s": 56.436,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26333,
    "c": 0.08858,
    "h": 271
  },
  "luminance": 0.01715
}

Semantic roles & 50–950 ramp

primary
#161F4F
secondary
#867A3A
accent
#C848E0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #161F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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