#172D4E#172D4E

#172D4E is a dark, moderate blue. Relative luminance 0.026; OKLCH L 29.8% C 0.067 H 258.3°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#172D4E
RGBrgb(23, 45, 78)
HSLhsl(216, 54%, 20%)
HSVhsv(216, 71%, 31%)
CMYKcmyk(70.5%, 42.3%, 0%, 69.4%)
CIE-LABlab(18.40, 3.64, -22.92)
CIE-LCHlch(18.40, 23.21, 279.01°)
OKLaboklab(29.76% -0.0135 -0.0651)
OKLCHoklch(29.76% 0.067 258.3)
XYZxyz(2.6664, 2.6087, 7.5693)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D4E #4E3817
analogous
#17494E #172D4E #1D174E
triadic
#172D4E #4E172D #2D4E17
tetradic
#172D4E #4E1749 #4E3817 #174E1D
square
#172D4E #4E1749 #4E3817 #174E1D
split-complementary
#172D4E #4E1D17 #494E17
monochromatic
#070E18 #09121F #172D4E #25487D #3364AD

Accessibility & contrast

On white

13.80
#172D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#172D4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D4E
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D4E#FFFFFF#000000##FFFFFF
##172D4E1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E304F
Deuteranopia (green-blind)
#172B4D
Tritanopia (blue-blind)
#003539
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172d4e;
/* rgb */ color: rgb(23, 45, 78);
/* oklch */ color: oklch(29.8% 0.067 258.3);
Tailwind
colors: {
  custom: {
    50: '#5b6580',
    500: '#172d4e',
    950: '#000000',
  },
}
SCSS
$custom: #172d4e;
$custom-light: #5b6580;
$custom-dark: #000000;
JSON
{
  "hex": "#172d4e",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 78
  },
  "hsl": {
    "h": 216,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29757,
    "c": 0.06653,
    "h": 258.3
  },
  "luminance": 0.02609
}

Semantic roles & 50–950 ramp

primary
#172D4E
secondary
#85683C
accent
#A34ADE
background
#F5F6F7
surface
#E9EBEE
border
#C5C6C9
text
#04050A
muted
#797A7C

Preview Lab

Preview with #172D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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