#161F7D#161F7D

#161F7D is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.155 H 269.5°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#161F7D
RGBrgb(22, 31, 125)
HSLhsl(235, 70%, 29%)
HSVhsv(235, 82%, 49%)
CMYKcmyk(82.4%, 75.2%, 0%, 51%)
CIE-LABlab(18.50, 32.46, -53.57)
CIE-LCHlch(18.50, 62.64, 301.21°)
OKLaboklab(31.09% -0.0014 -0.1552)
OKLCHoklch(31.09% 0.155 269.5)
XYZxyz(4.5213, 2.6307, 19.6675)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F7D #7D7416
analogous
#16537D #161F7D #41167D
triadic
#161F7D #7D161F #1F7D16
tetradic
#161F7D #7D1653 #7D7416 #167D41
square
#161F7D #7D1653 #7D7416 #167D41
split-complementary
#161F7D #7D4116 #537D16
monochromatic
#05061A #0D1249 #161F7D #1F2CB1 #3241DB

Accessibility & contrast

On white

13.76
#161F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#161F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F7D
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F7D#FFFFFF#000000##FFFFFF
##161F7D1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#00287B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #161f7d;
/* rgb */ color: rgb(22, 31, 125);
/* oklch */ color: oklch(31.1% 0.155 269.5);
Tailwind
colors: {
  custom: {
    50: '#685ba4',
    500: '#161f7d',
    950: '#000000',
  },
}
SCSS
$custom: #161f7d;
$custom-light: #685ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#161f7d",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 234.757,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31086,
    "c": 0.15521,
    "h": 269.5
  },
  "luminance": 0.02631
}

Semantic roles & 50–950 ramp

primary
#161F7D
secondary
#B2A83D
accent
#DD3BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #161F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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