#171B4E#171B4E

#171B4E is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.4% C 0.093 H 274.3°. Best body text is #FFFFFF at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#171B4E
RGBrgb(23, 27, 78)
HSLhsl(236, 54%, 20%)
HSVhsv(236, 71%, 31%)
CMYKcmyk(70.5%, 65.4%, 0%, 69.4%)
CIE-LABlab(12.71, 17.00, -32.07)
CIE-LCHlch(12.71, 36.30, 297.93°)
OKLaboklab(25.43% 0.007 -0.0923)
OKLCHoklch(25.43% 0.093 274.3)
XYZxyz(2.1200, 1.5159, 7.3871)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B4E #4E4A17
analogous
#17374E #171B4E #2E174E
triadic
#171B4E #4E171B #1B4E17
tetradic
#171B4E #4E1737 #4E4A17 #174E2E
square
#171B4E #4E1737 #4E4A17 #174E2E
split-complementary
#171B4E #4E2E17 #374E17
monochromatic
#070818 #090B1F #171B4E #252B7D #333CAD

Accessibility & contrast

On white

16.11
#171B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171B4E
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B4E#FFFFFF#000000##FFFFFF
##171B4E1.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002350
Deuteranopia (green-blind)
#001F4D
Tritanopia (blue-blind)
#002831
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #171b4e;
/* rgb */ color: rgb(23, 27, 78);
/* oklch */ color: oklch(25.4% 0.093 274.3);
Tailwind
colors: {
  custom: {
    50: '#5c5780',
    500: '#171b4e',
    950: '#000000',
  },
}
SCSS
$custom: #171b4e;
$custom-light: #5c5780;
$custom-dark: #000000;
JSON
{
  "hex": "#171b4e",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 235.636,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.25426,
    "c": 0.09258,
    "h": 274.3
  },
  "luminance": 0.01516
}

Semantic roles & 50–950 ramp

primary
#171B4E
secondary
#85803C
accent
#D34ADE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #171B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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