#173156#173156

#173156 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.4% C 0.074 H 257.5°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#173156
RGBrgb(23, 49, 86)
HSLhsl(215, 58%, 21%)
HSVhsv(215, 73%, 34%)
CMYKcmyk(73.3%, 43%, 0%, 66.3%)
CIE-LABlab(20.24, 4.05, -25.35)
CIE-LCHlch(20.24, 25.68, 279.08°)
OKLaboklab(31.35% -0.016 -0.0722)
OKLCHoklch(31.35% 0.074 257.5)
XYZxyz(3.1308, 3.0504, 9.2261)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173156 #563C17
analogous
#175156 #173156 #1D1756
triadic
#173156 #561731 #315617
tetradic
#173156 #561751 #563C17 #17561D
square
#173156 #561751 #563C17 #17561D
split-complementary
#173156 #561D17 #515617
monochromatic
#060E18 #0A1526 #173156 #244D86 #3168B7

Accessibility & contrast

On white

13.04
#173156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#173156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173156
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173156#FFFFFF#000000##FFFFFF
##1731561.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203457
Deuteranopia (green-blind)
#172E55
Tritanopia (blue-blind)
#003A3F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #173156;
/* rgb */ color: rgb(23, 49, 86);
/* oklch */ color: oklch(31.4% 0.074 257.5);
Tailwind
colors: {
  custom: {
    50: '#5c6886',
    500: '#173156',
    950: '#000000',
  },
}
SCSS
$custom: #173156;
$custom-light: #5c6886;
$custom-dark: #000000;
JSON
{
  "hex": "#173156",
  "rgb": {
    "r": 23,
    "g": 49,
    "b": 86
  },
  "hsl": {
    "h": 215.238,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31353,
    "c": 0.07398,
    "h": 257.5
  },
  "luminance": 0.03051
}

Semantic roles & 50–950 ramp

primary
#173156
secondary
#8D6B3C
accent
#A147E1
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060B
muted
#797A7C

Preview Lab

Preview with #173156

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

Preview Lab → · Contrast checker → · Palette generator →

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