#161F54#161F54

#161F54 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.8% C 0.097 H 271.1°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#161F54
RGBrgb(22, 31, 84)
HSLhsl(231, 58%, 21%)
HSVhsv(231, 74%, 33%)
CMYKcmyk(73.8%, 63.1%, 0%, 67.1%)
CIE-LABlab(14.35, 16.30, -33.50)
CIE-LCHlch(14.35, 37.26, 295.95°)
OKLaboklab(26.79% 0.0018 -0.0965)
OKLCHoklch(26.79% 0.097 271.1)
XYZxyz(2.4206, 1.7904, 8.6038)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F54 #544B16
analogous
#163E54 #161F54 #2C1654
triadic
#161F54 #54161F #1F5416
tetradic
#161F54 #54163E #544B16 #16542C
square
#161F54 #54163E #544B16 #16542C
split-complementary
#161F54 #542C16 #3E5416
monochromatic
#060918 #090D24 #161F54 #233184 #2F43B5

Accessibility & contrast

On white

15.46
#161F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#161F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F54
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F54#FFFFFF#000000##FFFFFF
##161F541.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002756
Deuteranopia (green-blind)
#002253
Tritanopia (blue-blind)
#002C36
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #161f54;
/* rgb */ color: rgb(22, 31, 84);
/* oklch */ color: oklch(26.8% 0.097 271.1);
Tailwind
colors: {
  custom: {
    50: '#5c5a85',
    500: '#161f54',
    950: '#000000',
  },
}
SCSS
$custom: #161f54;
$custom-light: #5c5a85;
$custom-dark: #000000;
JSON
{
  "hex": "#161f54",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 84
  },
  "hsl": {
    "h": 231.29,
    "s": 58.491,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26793,
    "c": 0.09652,
    "h": 271.1
  },
  "luminance": 0.01791
}

Semantic roles & 50–950 ramp

primary
#161F54
secondary
#8B803A
accent
#CB46E2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #161F54

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

Preview Lab → · Contrast checker → · Palette generator →

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