#161F7A#161F7A

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

Color values

HEX#161F7A
RGBrgb(22, 31, 122)
HSLhsl(235, 69%, 28%)
HSVhsv(235, 82%, 48%)
CMYKcmyk(82%, 74.6%, 0%, 52.2%)
CIE-LABlab(18.17, 31.34, -52.21)
CIE-LCHlch(18.17, 60.89, 300.97°)
OKLaboklab(30.75% -0.001 -0.1512)
OKLCHoklch(30.75% 0.151 269.6)
XYZxyz(4.3325, 2.5552, 18.6734)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F7A #7A7116
analogous
#16517A #161F7A #3F167A
triadic
#161F7A #7A161F #1F7A16
tetradic
#161F7A #7A1651 #7A7116 #167A3F
square
#161F7A #7A1651 #7A7116 #167A3F
split-complementary
#161F7A #7A3F16 #517A16
monochromatic
#05071A #0D1246 #161F7A #1F2CAE #3140DA

Accessibility & contrast

On white

13.90
#161F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#161F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F7A
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F7A#FFFFFF#000000##FFFFFF
##161F7A1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002778
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #161f7a;
/* rgb */ color: rgb(22, 31, 122);
/* oklch */ color: oklch(30.7% 0.151 269.6);
Tailwind
colors: {
  custom: {
    50: '#675ba1',
    500: '#161f7a',
    950: '#000000',
  },
}
SCSS
$custom: #161f7a;
$custom-light: #675ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#161f7a",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 234.6,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30748,
    "c": 0.15123,
    "h": 269.6
  },
  "luminance": 0.02556
}

Semantic roles & 50–950 ramp

primary
#161F7A
secondary
#AFA53D
accent
#DC3CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #161F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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