#171A4F#171A4F

#171A4F is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.3% C 0.096 H 274.8°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#171A4F
RGBrgb(23, 26, 79)
HSLhsl(237, 55%, 20%)
HSVhsv(237, 71%, 31%)
CMYKcmyk(70.9%, 67.1%, 0%, 69%)
CIE-LABlab(12.51, 18.14, -33.08)
CIE-LCHlch(12.51, 37.72, 298.74°)
OKLaboklab(25.31% 0.008 -0.0953)
OKLCHoklch(25.31% 0.096 274.8)
XYZxyz(2.1336, 1.4853, 7.5699)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A4F #4F4C17
analogous
#17364F #171A4F #30174F
triadic
#171A4F #4F171A #1A4F17
tetradic
#171A4F #4F1736 #4F4C17 #174F30
square
#171A4F #4F1736 #4F4C17 #174F30
split-complementary
#171A4F #4F3017 #364F17
monochromatic
#070818 #090A20 #171A4F #252A7E #3339AE

Accessibility & contrast

On white

16.19
#171A4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#171A4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A4F
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A4F#FFFFFF#000000##FFFFFF
##171A4F1.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#001E4E
Tritanopia (blue-blind)
#002731
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #171a4f;
/* rgb */ color: rgb(23, 26, 79);
/* oklch */ color: oklch(25.3% 0.096 274.8);
Tailwind
colors: {
  custom: {
    50: '#5c5681',
    500: '#171a4f',
    950: '#000000',
  },
}
SCSS
$custom: #171a4f;
$custom-light: #5c5681;
$custom-dark: #000000;
JSON
{
  "hex": "#171a4f",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 79
  },
  "hsl": {
    "h": 236.786,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.25311,
    "c": 0.09561,
    "h": 274.8
  },
  "luminance": 0.01485
}

Semantic roles & 50–950 ramp

primary
#171A4F
secondary
#86823C
accent
#D64ADE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #171A4F

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

Preview Lab → · Contrast checker → · Palette generator →

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