#172A47#172A47

#172A47 is a dark, muted blue. Relative luminance 0.023; OKLCH L 28.5% C 0.059 H 258.6°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#172A47
RGBrgb(23, 42, 71)
HSLhsl(216, 51%, 18%)
HSVhsv(216, 68%, 28%)
CMYKcmyk(67.6%, 40.8%, 0%, 72.2%)
CIE-LABlab(16.95, 2.96, -20.46)
CIE-LCHlch(16.95, 20.67, 278.23°)
OKLaboklab(28.49% -0.0117 -0.058)
OKLCHoklch(28.49% 0.059 258.6)
XYZxyz(2.3182, 2.2928, 6.2804)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A47 #473417
analogous
#174247 #172A47 #1C1747
triadic
#172A47 #47172A #2A4717
tetradic
#172A47 #471742 #473417 #17471C
square
#172A47 #471742 #473417 #17471C
split-complementary
#172A47 #471C17 #424717
monochromatic
#070E17 #080F19 #172A47 #264575 #3561A3

Accessibility & contrast

On white

14.40
#172A47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172A47
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A47#FFFFFF#000000##FFFFFF
##172A471.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172a47;
/* rgb */ color: rgb(23, 42, 71);
/* oklch */ color: oklch(28.5% 0.059 258.6);
Tailwind
colors: {
  custom: {
    50: '#59637a',
    500: '#172a47',
    950: '#000000',
  },
}
SCSS
$custom: #172a47;
$custom-light: #59637a;
$custom-dark: #000000;
JSON
{
  "hex": "#172a47",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 71
  },
  "hsl": {
    "h": 216.25,
    "s": 51.064,
    "l": 18.431
  },
  "oklch": {
    "l": 0.28488,
    "c": 0.05916,
    "h": 258.6
  },
  "luminance": 0.02293
}

Semantic roles & 50–950 ramp

primary
#172A47
secondary
#7E643C
accent
#A34DDB
background
#F5F5F7
surface
#E9EAED
border
#C5C6C8
text
#040509
muted
#79797B

Preview Lab

Preview with #172A47

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

Preview Lab → · Contrast checker → · Palette generator →

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