#172A4B#172A4B

#172A4B is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.8% C 0.066 H 260.7°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#172A4B
RGBrgb(23, 42, 75)
HSLhsl(218, 53%, 19%)
HSVhsv(218, 69%, 29%)
CMYKcmyk(69.3%, 44%, 0%, 70.6%)
CIE-LABlab(17.21, 4.58, -22.79)
CIE-LCHlch(17.21, 23.24, 281.38°)
OKLaboklab(28.77% -0.0106 -0.0648)
OKLCHoklch(28.77% 0.066 260.7)
XYZxyz(2.4509, 2.3459, 6.9789)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A4B #4B3817
analogous
#17444B #172A4B #1E174B
triadic
#172A4B #4B172A #2A4B17
tetradic
#172A4B #4B1744 #4B3817 #174B1E
square
#172A4B #4B1744 #4B3817 #174B1E
split-complementary
#172A4B #4B1E17 #444B17
monochromatic
#070D17 #09101C #172A4B #25447A #345EA9

Accessibility & contrast

On white

14.29
#172A4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#172A4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A4B
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A4B#FFFFFF#000000##FFFFFF
##172A4B1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2D4C
Deuteranopia (green-blind)
#14284A
Tritanopia (blue-blind)
#003136
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #172a4b;
/* rgb */ color: rgb(23, 42, 75);
/* oklch */ color: oklch(28.8% 0.066 260.7);
Tailwind
colors: {
  custom: {
    50: '#5a637d',
    500: '#172a4b',
    950: '#000000',
  },
}
SCSS
$custom: #172a4b;
$custom-light: #5a637d;
$custom-dark: #000000;
JSON
{
  "hex": "#172a4b",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 75
  },
  "hsl": {
    "h": 218.077,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28766,
    "c": 0.06566,
    "h": 260.7
  },
  "luminance": 0.02346
}

Semantic roles & 50–950 ramp

primary
#172A4B
secondary
#82683C
accent
#A74BDC
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#040509
muted
#79797B

Preview Lab

Preview with #172A4B

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

Preview Lab → · Contrast checker → · Palette generator →

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