#172E56#172E56

#172E56 is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.6% C 0.078 H 260.7°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#172E56
RGBrgb(23, 46, 86)
HSLhsl(218, 58%, 21%)
HSVhsv(218, 73%, 34%)
CMYKcmyk(73.3%, 46.5%, 0%, 66.3%)
CIE-LABlab(19.26, 6.21, -26.93)
CIE-LCHlch(19.26, 27.64, 282.99°)
OKLaboklab(30.59% -0.0126 -0.0769)
OKLCHoklch(30.59% 0.078 260.7)
XYZxyz(3.0095, 2.8077, 9.1856)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E56 #563F17
analogous
#174E56 #172E56 #201756
triadic
#172E56 #56172E #2E5617
tetradic
#172E56 #56174E #563F17 #175620
square
#172E56 #56174E #563F17 #175620
split-complementary
#172E56 #562017 #4E5617
monochromatic
#060D18 #0A1426 #172E56 #244886 #3162B7

Accessibility & contrast

On white

13.45
#172E56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#172E56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E56
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E56#FFFFFF#000000##FFFFFF
##172E561.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3258
Deuteranopia (green-blind)
#112C55
Tritanopia (blue-blind)
#00373D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172e56;
/* rgb */ color: rgb(23, 46, 86);
/* oklch */ color: oklch(30.6% 0.078 260.7);
Tailwind
colors: {
  custom: {
    50: '#5c6686',
    500: '#172e56',
    950: '#000000',
  },
}
SCSS
$custom: #172e56;
$custom-light: #5c6686;
$custom-dark: #000000;
JSON
{
  "hex": "#172e56",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 86
  },
  "hsl": {
    "h": 218.095,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.30588,
    "c": 0.07792,
    "h": 260.7
  },
  "luminance": 0.02808
}

Semantic roles & 50–950 ramp

primary
#172E56
secondary
#8D6F3C
accent
#A947E1
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04050B
muted
#797A7C

Preview Lab

Preview with #172E56

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

Preview Lab → · Contrast checker → · Palette generator →

#172E56 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva