#171A4E#171A4E

#171A4E is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.2% C 0.094 H 274.9°. Best body text is #FFFFFF at 16.23:1 contrast (WCAG AA passes).

Color values

HEX#171A4E
RGBrgb(23, 26, 78)
HSLhsl(237, 54%, 20%)
HSVhsv(237, 71%, 31%)
CMYKcmyk(70.5%, 66.7%, 0%, 69.4%)
CIE-LABlab(12.42, 17.74, -32.54)
CIE-LCHlch(12.42, 37.06, 298.60°)
OKLaboklab(25.21% 0.008 -0.0937)
OKLCHoklch(25.21% 0.094 274.9)
XYZxyz(2.0974, 1.4708, 7.3796)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A4E #4E4B17
analogous
#17364E #171A4E #2F174E
triadic
#171A4E #4E171A #1A4E17
tetradic
#171A4E #4E1736 #4E4B17 #174E2F
square
#171A4E #4E1736 #4E4B17 #174E2F
split-complementary
#171A4E #4E2F17 #364E17
monochromatic
#070818 #090A1F #171A4E #252A7D #333AAD

Accessibility & contrast

On white

16.23
#171A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#171A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A4E
16.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A4E#FFFFFF#000000##FFFFFF
##171A4E1.0016.231.2916.23
#FFFFFF16.231.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002350
Deuteranopia (green-blind)
#001E4D
Tritanopia (blue-blind)
#002731
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #171a4e;
/* rgb */ color: rgb(23, 26, 78);
/* oklch */ color: oklch(25.2% 0.094 274.9);
Tailwind
colors: {
  custom: {
    50: '#5c5680',
    500: '#171a4e',
    950: '#000000',
  },
}
SCSS
$custom: #171a4e;
$custom-light: #5c5680;
$custom-dark: #000000;
JSON
{
  "hex": "#171a4e",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 78
  },
  "hsl": {
    "h": 236.727,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.25214,
    "c": 0.09405,
    "h": 274.9
  },
  "luminance": 0.01471
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #171A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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