#161F40#161F40

#161F40 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.1% C 0.064 H 269.9°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#161F40
RGBrgb(22, 31, 64)
HSLhsl(227, 49%, 17%)
HSVhsv(227, 66%, 25%)
CMYKcmyk(65.6%, 51.6%, 0%, 74.9%)
CIE-LABlab(12.74, 8.06, -22.31)
CIE-LCHlch(12.74, 23.72, 289.85°)
OKLaboklab(25.07% -0.0001 -0.0636)
OKLCHoklch(25.07% 0.064 269.9)
XYZxyz(1.7460, 1.5206, 5.0510)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F40 #403716
analogous
#163440 #161F40 #221640
triadic
#161F40 #40161F #1F4016
tetradic
#161F40 #401634 #403716 #164022
square
#161F40 #401634 #403716 #164022
split-complementary
#161F40 #402216 #344016
monochromatic
#080B17 #080B17 #161F40 #26356E #354B9B

Accessibility & contrast

On white

16.10
#161F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#161F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F40
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F40#FFFFFF#000000##FFFFFF
##161F401.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102341
Deuteranopia (green-blind)
#0A1F3F
Tritanopia (blue-blind)
#00262C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #161f40;
/* rgb */ color: rgb(22, 31, 64);
/* oklch */ color: oklch(25.1% 0.064 269.9);
Tailwind
colors: {
  custom: {
    50: '#585a75',
    500: '#161f40',
    950: '#000000',
  },
}
SCSS
$custom: #161f40;
$custom-light: #585a75;
$custom-dark: #000000;
JSON
{
  "hex": "#161f40",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 64
  },
  "hsl": {
    "h": 227.143,
    "s": 48.837,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25068,
    "c": 0.0636,
    "h": 269.9
  },
  "luminance": 0.01521
}

Semantic roles & 50–950 ramp

primary
#161F40
secondary
#776A3B
accent
#BB4FD8
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #161F40

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

Preview Lab → · Contrast checker → · Palette generator →

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