#172A48#172A48

#172A48 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.6% C 0.061 H 259.2°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#172A48
RGBrgb(23, 42, 72)
HSLhsl(217, 52%, 19%)
HSVhsv(217, 68%, 28%)
CMYKcmyk(68.1%, 41.7%, 0%, 71.8%)
CIE-LABlab(17.02, 3.36, -21.04)
CIE-LCHlch(17.02, 21.31, 279.08°)
OKLaboklab(28.56% -0.0114 -0.0597)
OKLCHoklch(28.56% 0.061 259.2)
XYZxyz(2.3506, 2.3058, 6.4508)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A48 #483517
analogous
#174248 #172A48 #1C1748
triadic
#172A48 #48172A #2A4817
tetradic
#172A48 #481742 #483517 #17481C
square
#172A48 #481742 #483517 #17481C
split-complementary
#172A48 #481C17 #424817
monochromatic
#070E17 #080F1A #172A48 #264576 #3560A5

Accessibility & contrast

On white

14.37
#172A48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#172A48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A48
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A48#FFFFFF#000000##FFFFFF
##172A481.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2C49
Deuteranopia (green-blind)
#172847
Tritanopia (blue-blind)
#003135
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #172a48;
/* rgb */ color: rgb(23, 42, 72);
/* oklch */ color: oklch(28.6% 0.061 259.2);
Tailwind
colors: {
  custom: {
    50: '#59637b',
    500: '#172a48',
    950: '#000000',
  },
}
SCSS
$custom: #172a48;
$custom-light: #59637b;
$custom-dark: #000000;
JSON
{
  "hex": "#172a48",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 72
  },
  "hsl": {
    "h": 216.735,
    "s": 51.579,
    "l": 18.627
  },
  "oklch": {
    "l": 0.28556,
    "c": 0.06078,
    "h": 259.2
  },
  "luminance": 0.02306
}

Semantic roles & 50–950 ramp

primary
#172A48
secondary
#7F653C
accent
#A44DDB
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#040509
muted
#79797B

Preview Lab

Preview with #172A48

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

Preview Lab → · Contrast checker → · Palette generator →

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