#161B7F#161B7F

#161B7F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.162 H 269.9°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#161B7F
RGBrgb(22, 27, 127)
HSLhsl(237, 70%, 29%)
HSVhsv(237, 83%, 50%)
CMYKcmyk(82.7%, 78.7%, 0%, 50.2%)
CIE-LABlab(17.86, 35.65, -55.91)
CIE-LCHlch(17.86, 66.31, 302.52°)
OKLaboklab(30.7% -0.0002 -0.1619)
OKLCHoklch(30.7% 0.162 269.9)
XYZxyz(4.5523, 2.4862, 20.3145)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161B7F #7F7A16
analogous
#16507F #161B7F #46167F
triadic
#161B7F #7F161B #1B7F16
tetradic
#161B7F #7F1650 #7F7A16 #167F46
square
#161B7F #7F1650 #7F7A16 #167F46
split-complementary
#161B7F #7F4616 #507F16
monochromatic
#05061A #0D104B #161B7F #1F26B3 #343CDC

Accessibility & contrast

On white

14.02
#161B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#161B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161B7F
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161B7F#FFFFFF#000000##FFFFFF
##161B7F1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #161b7f;
/* rgb */ color: rgb(22, 27, 127);
/* oklch */ color: oklch(30.7% 0.162 269.9);
Tailwind
colors: {
  custom: {
    50: '#6959a5',
    500: '#161b7f',
    950: '#000000',
  },
}
SCSS
$custom: #161b7f;
$custom-light: #6959a5;
$custom-dark: #000000;
JSON
{
  "hex": "#161b7f",
  "rgb": {
    "r": 22,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 237.143,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30696,
    "c": 0.16195,
    "h": 269.9
  },
  "luminance": 0.02487
}

Semantic roles & 50–950 ramp

primary
#161B7F
secondary
#B4AE3D
accent
#E53BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #161B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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