#172D54#172D54

#172D54 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.2% C 0.076 H 260.9°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#172D54
RGBrgb(23, 45, 84)
HSLhsl(218, 57%, 21%)
HSVhsv(218, 73%, 33%)
CMYKcmyk(72.6%, 46.4%, 0%, 67.1%)
CIE-LABlab(18.79, 6.11, -26.33)
CIE-LCHlch(18.79, 27.03, 283.06°)
OKLaboklab(30.19% -0.012 -0.0751)
OKLCHoklch(30.19% 0.076 260.9)
XYZxyz(2.8914, 2.6987, 8.7543)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D54 #543E17
analogous
#174B54 #172D54 #1F1754
triadic
#172D54 #54172D #2D5417
tetradic
#172D54 #54174B #543E17 #17541F
square
#172D54 #54174B #543E17 #17541F
split-complementary
#172D54 #541F17 #4B5417
monochromatic
#070D18 #0A1324 #172D54 #244784 #3160B4

Accessibility & contrast

On white

13.64
#172D54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#172D54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D54
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D54#FFFFFF#000000##FFFFFF
##172D541.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3156
Deuteranopia (green-blind)
#112B53
Tritanopia (blue-blind)
#00363C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172d54;
/* rgb */ color: rgb(23, 45, 84);
/* oklch */ color: oklch(30.2% 0.076 260.9);
Tailwind
colors: {
  custom: {
    50: '#5c6584',
    500: '#172d54',
    950: '#000000',
  },
}
SCSS
$custom: #172d54;
$custom-light: #5c6584;
$custom-dark: #000000;
JSON
{
  "hex": "#172d54",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 84
  },
  "hsl": {
    "h": 218.361,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.30187,
    "c": 0.0761,
    "h": 260.9
  },
  "luminance": 0.02699
}

Semantic roles & 50–950 ramp

primary
#172D54
secondary
#8B6E3C
accent
#A948E0
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04050B
muted
#797A7C

Preview Lab

Preview with #172D54

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

Preview Lab → · Contrast checker → · Palette generator →

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