#172A4E#172A4E

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

Color values

HEX#172A4E
RGBrgb(23, 42, 78)
HSLhsl(219, 54%, 20%)
HSVhsv(219, 71%, 31%)
CMYKcmyk(70.5%, 46.2%, 0%, 69.4%)
CIE-LABlab(17.40, 5.82, -24.51)
CIE-LCHlch(17.40, 25.19, 283.35°)
OKLaboklab(28.98% -0.0098 -0.0699)
OKLCHoklch(28.98% 0.071 262)
XYZxyz(2.5560, 2.3879, 7.5325)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A4E #4E3B17
analogous
#17454E #172A4E #20174E
triadic
#172A4E #4E172A #2A4E17
tetradic
#172A4E #4E1745 #4E3B17 #174E20
square
#172A4E #4E1745 #4E3B17 #174E20
split-complementary
#172A4E #4E2017 #454E17
monochromatic
#070D18 #09111F #172A4E #25437D #335DAD

Accessibility & contrast

On white

14.21
#172A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172A4E
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A4E#FFFFFF#000000##FFFFFF
##172A4E1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2D4F
Deuteranopia (green-blind)
#11284D
Tritanopia (blue-blind)
#003238
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #172a4e;
/* rgb */ color: rgb(23, 42, 78);
/* oklch */ color: oklch(29.0% 0.071 262.0);
Tailwind
colors: {
  custom: {
    50: '#5b6380',
    500: '#172a4e',
    950: '#000000',
  },
}
SCSS
$custom: #172a4e;
$custom-light: #5b6380;
$custom-dark: #000000;
JSON
{
  "hex": "#172a4e",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 78
  },
  "hsl": {
    "h": 219.273,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.28983,
    "c": 0.07055,
    "h": 262
  },
  "luminance": 0.02388
}

Semantic roles & 50–950 ramp

primary
#172A4E
secondary
#856C3C
accent
#AB4ADE
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #172A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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