#172B4B#172B4B

#172B4B is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.0% C 0.064 H 259.4°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#172B4B
RGBrgb(23, 43, 75)
HSLhsl(217, 53%, 19%)
HSVhsv(217, 69%, 29%)
CMYKcmyk(69.3%, 42.7%, 0%, 70.6%)
CIE-LABlab(17.54, 3.86, -22.25)
CIE-LCHlch(17.54, 22.59, 279.83°)
OKLaboklab(29.03% -0.0118 -0.0632)
OKLCHoklch(29.03% 0.064 259.4)
XYZxyz(2.4868, 2.4177, 6.9909)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B4B #4B3717
analogous
#17454B #172B4B #1D174B
triadic
#172B4B #4B172B #2B4B17
tetradic
#172B4B #4B1745 #4B3717 #174B1D
square
#172B4B #4B1745 #4B3717 #174B1D
split-complementary
#172B4B #4B1D17 #454B17
monochromatic
#070D17 #09101C #172B4B #25467A #3461A9

Accessibility & contrast

On white

14.15
#172B4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#172B4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B4B
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B4B#FFFFFF#000000##FFFFFF
##172B4B1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2E4C
Deuteranopia (green-blind)
#16294A
Tritanopia (blue-blind)
#003237
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #172b4b;
/* rgb */ color: rgb(23, 43, 75);
/* oklch */ color: oklch(29.0% 0.064 259.4);
Tailwind
colors: {
  custom: {
    50: '#5a647d',
    500: '#172b4b',
    950: '#000000',
  },
}
SCSS
$custom: #172b4b;
$custom-light: #5a647d;
$custom-dark: #000000;
JSON
{
  "hex": "#172b4b",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 75
  },
  "hsl": {
    "h": 216.923,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29026,
    "c": 0.06433,
    "h": 259.4
  },
  "luminance": 0.02418
}

Semantic roles & 50–950 ramp

primary
#172B4B
secondary
#82673C
accent
#A54BDC
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#040509
muted
#79797B

Preview Lab

Preview with #172B4B

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

Preview Lab → · Contrast checker → · Palette generator →

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