#172A4D#172A4D

#172A4D is a dark, moderate blue. Relative luminance 0.024; OKLCH L 28.9% C 0.069 H 261.6°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#172A4D
RGBrgb(23, 42, 77)
HSLhsl(219, 54%, 20%)
HSVhsv(219, 70%, 30%)
CMYKcmyk(70.1%, 45.5%, 0%, 69.8%)
CIE-LABlab(17.34, 5.40, -23.94)
CIE-LCHlch(17.34, 24.54, 282.72°)
OKLaboklab(28.91% -0.0101 -0.0682)
OKLCHoklch(28.91% 0.069 261.6)
XYZxyz(2.5204, 2.3737, 7.3451)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A4D #4D3A17
analogous
#17454D #172A4D #1F174D
triadic
#172A4D #4D172A #2A4D17
tetradic
#172A4D #4D1745 #4D3A17 #174D1F
square
#172A4D #4D1745 #4D3A17 #174D1F
split-complementary
#172A4D #4D1F17 #454D17
monochromatic
#070D18 #09101E #172A4D #25447C #335DAB

Accessibility & contrast

On white

14.24
#172A4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172A4D
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A4D#FFFFFF#000000##FFFFFF
##172A4D1.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2D4E
Deuteranopia (green-blind)
#12284C
Tritanopia (blue-blind)
#003237
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #172a4d;
/* rgb */ color: rgb(23, 42, 77);
/* oklch */ color: oklch(28.9% 0.069 261.6);
Tailwind
colors: {
  custom: {
    50: '#5a637f',
    500: '#172a4d',
    950: '#000000',
  },
}
SCSS
$custom: #172a4d;
$custom-light: #5a637f;
$custom-dark: #000000;
JSON
{
  "hex": "#172a4d",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 77
  },
  "hsl": {
    "h": 218.889,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.2891,
    "c": 0.06892,
    "h": 261.6
  },
  "luminance": 0.02374
}

Semantic roles & 50–950 ramp

primary
#172A4D
secondary
#846B3C
accent
#AA4ADD
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #172A4D

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

Preview Lab → · Contrast checker → · Palette generator →

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