#161F7B#161F7B

#161F7B is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.153 H 269.6°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#161F7B
RGBrgb(22, 31, 123)
HSLhsl(235, 70%, 28%)
HSVhsv(235, 82%, 48%)
CMYKcmyk(82.1%, 74.8%, 0%, 51.8%)
CIE-LABlab(18.28, 31.72, -52.67)
CIE-LCHlch(18.28, 61.48, 301.06°)
OKLaboklab(30.86% -0.0012 -0.1526)
OKLCHoklch(30.86% 0.153 269.6)
XYZxyz(4.3948, 2.5801, 19.0014)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F7B #7B7216
analogous
#16517B #161F7B #3F167B
triadic
#161F7B #7B161F #1F7B16
tetradic
#161F7B #7B1651 #7B7216 #167B3F
square
#161F7B #7B1651 #7B7216 #167B3F
split-complementary
#161F7B #7B3F16 #517B16
monochromatic
#05071A #0D1247 #161F7B #1F2CAF #3140DA

Accessibility & contrast

On white

13.85
#161F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#161F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F7B
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F7B#FFFFFF#000000##FFFFFF
##161F7B1.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002879
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #161f7b;
/* rgb */ color: rgb(22, 31, 123);
/* oklch */ color: oklch(30.9% 0.153 269.6);
Tailwind
colors: {
  custom: {
    50: '#675ba2',
    500: '#161f7b',
    950: '#000000',
  },
}
SCSS
$custom: #161f7b;
$custom-light: #675ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#161f7b",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 234.653,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3086,
    "c": 0.15256,
    "h": 269.6
  },
  "luminance": 0.02581
}

Semantic roles & 50–950 ramp

primary
#161F7B
secondary
#B0A63D
accent
#DD3BEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #161F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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