#161F58#161F58

#161F58 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.2% C 0.103 H 271.0°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#161F58
RGBrgb(22, 31, 88)
HSLhsl(232, 60%, 22%)
HSVhsv(232, 75%, 35%)
CMYKcmyk(75%, 64.8%, 0%, 65.5%)
CIE-LABlab(14.71, 17.94, -35.62)
CIE-LCHlch(14.71, 39.88, 296.74°)
OKLaboklab(27.17% 0.0018 -0.1027)
OKLCHoklch(27.17% 0.103 271)
XYZxyz(2.5817, 1.8549, 9.4526)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F58 #584F16
analogous
#164058 #161F58 #2E1658
triadic
#161F58 #58161F #1F5816
tetradic
#161F58 #581640 #584F16 #16582E
square
#161F58 #581640 #584F16 #16582E
split-complementary
#161F58 #582E16 #405816
monochromatic
#060918 #0A0E27 #161F58 #223089 #2E41BA

Accessibility & contrast

On white

15.32
#161F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#161F58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F58
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F58#FFFFFF#000000##FFFFFF
##161F581.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285A
Deuteranopia (green-blind)
#002257
Tritanopia (blue-blind)
#002D38
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #161f58;
/* rgb */ color: rgb(22, 31, 88);
/* oklch */ color: oklch(27.2% 0.103 271.0);
Tailwind
colors: {
  custom: {
    50: '#5e5a88',
    500: '#161f58',
    950: '#000000',
  },
}
SCSS
$custom: #161f58;
$custom-light: #5e5a88;
$custom-dark: #000000;
JSON
{
  "hex": "#161f58",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 88
  },
  "hsl": {
    "h": 231.818,
    "s": 60,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27173,
    "c": 0.10273,
    "h": 271
  },
  "luminance": 0.01855
}

Semantic roles & 50–950 ramp

primary
#161F58
secondary
#8F843B
accent
#CE45E3
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #161F58

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

Preview Lab → · Contrast checker → · Palette generator →

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