#161F5C#161F5C

#161F5C is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.6% C 0.109 H 270.9°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#161F5C
RGBrgb(22, 31, 92)
HSLhsl(232, 61%, 22%)
HSVhsv(232, 76%, 36%)
CMYKcmyk(76.1%, 66.3%, 0%, 63.9%)
CIE-LABlab(15.08, 19.58, -37.69)
CIE-LCHlch(15.08, 42.47, 297.45°)
OKLaboklab(27.56% 0.0017 -0.1088)
OKLCHoklch(27.56% 0.109 270.9)
XYZxyz(2.7520, 1.9230, 10.3493)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#161F5C #5C5316
analogous
#16425C #161F5C #30165C
triadic
#161F5C #5C161F #1F5C16
tetradic
#161F5C #5C1642 #5C5316 #165C30
square
#161F5C #5C1642 #5C5316 #165C30
split-complementary
#161F5C #5C3016 #425C16
monochromatic
#060819 #0A0E2B #161F5C #22308D #2E40BF

Accessibility & contrast

On white

15.17
#161F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#161F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #161F5C
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##161F5C#FFFFFF#000000##FFFFFF
##161F5C1.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295E
Deuteranopia (green-blind)
#00235B
Tritanopia (blue-blind)
#002F3A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #161f5c;
/* rgb */ color: rgb(22, 31, 92);
/* oklch */ color: oklch(27.6% 0.109 270.9);
Tailwind
colors: {
  custom: {
    50: '#5f5a8b',
    500: '#161f5c',
    950: '#000000',
  },
}
SCSS
$custom: #161f5c;
$custom-light: #5f5a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#161f5c",
  "rgb": {
    "r": 22,
    "g": 31,
    "b": 92
  },
  "hsl": {
    "h": 232.286,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27563,
    "c": 0.10882,
    "h": 270.9
  },
  "luminance": 0.01923
}

Semantic roles & 50–950 ramp

primary
#161F5C
secondary
#93883B
accent
#D043E5
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #161F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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