#172A4F#172A4F

#172A4F is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.1% C 0.072 H 262.3°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#172A4F
RGBrgb(23, 42, 79)
HSLhsl(220, 55%, 20%)
HSVhsv(220, 71%, 31%)
CMYKcmyk(70.9%, 46.8%, 0%, 69%)
CIE-LABlab(17.47, 6.23, -25.08)
CIE-LCHlch(17.47, 25.84, 283.95°)
OKLaboklab(29.06% -0.0096 -0.0715)
OKLCHoklch(29.06% 0.072 262.3)
XYZxyz(2.5921, 2.4024, 7.7227)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A4F #4F3C17
analogous
#17464F #172A4F #20174F
triadic
#172A4F #4F172A #2A4F17
tetradic
#172A4F #4F1746 #4F3C17 #174F20
square
#172A4F #4F1746 #4F3C17 #174F20
split-complementary
#172A4F #4F2017 #464F17
monochromatic
#070D18 #091120 #172A4F #25437E #335CAE

Accessibility & contrast

On white

14.18
#172A4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172A4F
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A4F#FFFFFF#000000##FFFFFF
##172A4F1.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192E50
Deuteranopia (green-blind)
#10284E
Tritanopia (blue-blind)
#003238
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #172a4f;
/* rgb */ color: rgb(23, 42, 79);
/* oklch */ color: oklch(29.1% 0.072 262.3);
Tailwind
colors: {
  custom: {
    50: '#5b6380',
    500: '#172a4f',
    950: '#000000',
  },
}
SCSS
$custom: #172a4f;
$custom-light: #5b6380;
$custom-dark: #000000;
JSON
{
  "hex": "#172a4f",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 79
  },
  "hsl": {
    "h": 219.643,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.29056,
    "c": 0.07217,
    "h": 262.3
  },
  "luminance": 0.02403
}

Semantic roles & 50–950 ramp

primary
#172A4F
secondary
#866D3C
accent
#AC4ADE
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #172A4F

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

Preview Lab → · Contrast checker → · Palette generator →

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