#161F42#161F42

#161F42 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.2% C 0.067 H 270.2°. Best body text is #FFFFFF at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#161F42
RGBrgb(22, 31, 66)
HSLhsl(228, 50%, 17%)
HSVhsv(228, 67%, 26%)
CMYKcmyk(66.7%, 53%, 0%, 74.1%)
CIE-LABlab(12.88, 8.87, -23.48)
CIE-LCHlch(12.88, 25.10, 290.70°)
OKLaboklab(25.23% 0.0002 -0.067)
OKLCHoklch(25.23% 0.067 270.2)
XYZxyz(1.8039, 1.5438, 5.3561)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F42 #423916
analogous
#163542 #161F42 #231642
triadic
#161F42 #42161F #1F4216
tetradic
#161F42 #421635 #423916 #164223
square
#161F42 #421635 #423916 #164223
split-complementary
#161F42 #422316 #354216
monochromatic
#080B17 #080B17 #161F42 #253570 #354A9E

Accessibility & contrast

On white

16.05
#161F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#161F42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F42
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F42#FFFFFF#000000##FFFFFF
##161F421.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2343
Deuteranopia (green-blind)
#081F41
Tritanopia (blue-blind)
#00272D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #161f42;
/* rgb */ color: rgb(22, 31, 66);
/* oklch */ color: oklch(25.2% 0.067 270.2);
Tailwind
colors: {
  custom: {
    50: '#585a76',
    500: '#161f42',
    950: '#000000',
  },
}
SCSS
$custom: #161f42;
$custom-light: #585a76;
$custom-dark: #000000;
JSON
{
  "hex": "#161f42",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 66
  },
  "hsl": {
    "h": 227.727,
    "s": 50,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25225,
    "c": 0.06703,
    "h": 270.2
  },
  "luminance": 0.01544
}

Semantic roles & 50–950 ramp

primary
#161F42
secondary
#796C3A
accent
#BD4EDA
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #161F42

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

Preview Lab → · Contrast checker → · Palette generator →

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