#173161#173161

#173161 is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.2% C 0.091 H 261.4°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#173161
RGBrgb(23, 49, 97)
HSLhsl(219, 62%, 24%)
HSVhsv(219, 76%, 38%)
CMYKcmyk(76.3%, 49.5%, 0%, 62%)
CIE-LABlab(20.99, 8.63, -31.43)
CIE-LCHlch(20.99, 32.59, 285.35°)
OKLaboklab(32.17% -0.0136 -0.0901)
OKLCHoklch(32.17% 0.091 261.4)
XYZxyz(3.6086, 3.2415, 11.7424)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173161 #614717
analogous
#175661 #173161 #221761
triadic
#173161 #611731 #316117
tetradic
#173161 #611756 #614717 #176122
square
#173161 #611756 #614717 #176122
split-complementary
#173161 #612217 #566117
monochromatic
#060C19 #0B1830 #173161 #234A92 #2E63C4

Accessibility & contrast

On white

12.74
#173161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#173161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173161
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173161#FFFFFF#000000##FFFFFF
##1731611.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183663
Deuteranopia (green-blind)
#082F60
Tritanopia (blue-blind)
#003C44
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #173161;
/* rgb */ color: rgb(23, 49, 97);
/* oklch */ color: oklch(32.2% 0.091 261.4);
Tailwind
colors: {
  custom: {
    50: '#5f688e',
    500: '#173161',
    950: '#000000',
  },
}
SCSS
$custom: #173161;
$custom-light: #5f688e;
$custom-dark: #000000;
JSON
{
  "hex": "#173161",
  "rgb": {
    "r": 23,
    "g": 49,
    "b": 97
  },
  "hsl": {
    "h": 218.919,
    "s": 61.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.32166,
    "c": 0.09109,
    "h": 261.4
  },
  "luminance": 0.03242
}

Semantic roles & 50–950 ramp

primary
#173161
secondary
#98773C
accent
#AC43E5
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #173161

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

Preview Lab → · Contrast checker → · Palette generator →

#173161 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva