#161F45#161F45

#161F45 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.5% C 0.072 H 270.5°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#161F45
RGBrgb(22, 31, 69)
HSLhsl(229, 52%, 18%)
HSVhsv(229, 68%, 27%)
CMYKcmyk(68.1%, 55.1%, 0%, 72.9%)
CIE-LABlab(13.11, 10.10, -25.21)
CIE-LCHlch(13.11, 27.16, 291.84°)
OKLaboklab(25.47% 0.0007 -0.0721)
OKLCHoklch(25.47% 0.072 270.5)
XYZxyz(1.8947, 1.5801, 5.8342)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F45 #453C16
analogous
#163645 #161F45 #251645
triadic
#161F45 #45161F #1F4516
tetradic
#161F45 #451636 #453C16 #164525
square
#161F45 #451636 #453C16 #164525
split-complementary
#161F45 #452516 #364516
monochromatic
#070A17 #070A17 #161F45 #253473 #3449A2

Accessibility & contrast

On white

15.96
#161F45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#161F45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F45
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F45#FFFFFF#000000##FFFFFF
##161F451.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2446
Deuteranopia (green-blind)
#042044
Tritanopia (blue-blind)
#00282E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #161f45;
/* rgb */ color: rgb(22, 31, 69);
/* oklch */ color: oklch(25.5% 0.072 270.5);
Tailwind
colors: {
  custom: {
    50: '#595a79',
    500: '#161f45',
    950: '#000000',
  },
}
SCSS
$custom: #161f45;
$custom-light: #595a79;
$custom-dark: #000000;
JSON
{
  "hex": "#161f45",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 69
  },
  "hsl": {
    "h": 228.511,
    "s": 51.648,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25469,
    "c": 0.07212,
    "h": 270.5
  },
  "luminance": 0.0158
}

Semantic roles & 50–950 ramp

primary
#161F45
secondary
#7C703A
accent
#C04DDB
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040309
muted
#79787B

Preview Lab

Preview with #161F45

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

Preview Lab → · Contrast checker → · Palette generator →

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