#171B4D#171B4D

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

Color values

HEX#171B4D
RGBrgb(23, 27, 77)
HSLhsl(236, 54%, 20%)
HSVhsv(236, 70%, 30%)
CMYKcmyk(70.1%, 64.9%, 0%, 69.8%)
CIE-LABlab(12.62, 16.60, -31.53)
CIE-LCHlch(12.62, 35.63, 297.76°)
OKLaboklab(25.33% 0.007 -0.0907)
OKLCHoklch(25.33% 0.091 274.4)
XYZxyz(2.0844, 1.5017, 7.1997)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B4D #4D4917
analogous
#17364D #171B4D #2E174D
triadic
#171B4D #4D171B #1B4D17
tetradic
#171B4D #4D1736 #4D4917 #174D2E
square
#171B4D #4D1736 #4D4917 #174D2E
split-complementary
#171B4D #4D2E17 #364D17
monochromatic
#070818 #090A1E #171B4D #252C7C #333CAB

Accessibility & contrast

On white

16.15
#171B4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171B4D
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B4D#FFFFFF#000000##FFFFFF
##171B4D1.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234F
Deuteranopia (green-blind)
#001E4C
Tritanopia (blue-blind)
#002731
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #171b4d;
/* rgb */ color: rgb(23, 27, 77);
/* oklch */ color: oklch(25.3% 0.091 274.4);
Tailwind
colors: {
  custom: {
    50: '#5b577f',
    500: '#171b4d',
    950: '#000000',
  },
}
SCSS
$custom: #171b4d;
$custom-light: #5b577f;
$custom-dark: #000000;
JSON
{
  "hex": "#171b4d",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 77
  },
  "hsl": {
    "h": 235.556,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25331,
    "c": 0.091,
    "h": 274.4
  },
  "luminance": 0.01502
}

Semantic roles & 50–950 ramp

primary
#171B4D
secondary
#847F3C
accent
#D24ADD
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #171B4D

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

Preview Lab → · Contrast checker → · Palette generator →

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