#171B4F#171B4F

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

Color values

HEX#171B4F
RGBrgb(23, 27, 79)
HSLhsl(236, 55%, 20%)
HSVhsv(236, 71%, 31%)
CMYKcmyk(70.9%, 65.8%, 0%, 69%)
CIE-LABlab(12.80, 17.40, -32.61)
CIE-LCHlch(12.80, 36.96, 298.09°)
OKLaboklab(25.52% 0.007 -0.0939)
OKLCHoklch(25.52% 0.094 274.2)
XYZxyz(2.1561, 1.5304, 7.5774)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B4F #4F4B17
analogous
#17374F #171B4F #2F174F
triadic
#171B4F #4F171B #1B4F17
tetradic
#171B4F #4F1737 #4F4B17 #174F2F
square
#171B4F #4F1737 #4F4B17 #174F2F
split-complementary
#171B4F #4F2F17 #374F17
monochromatic
#070818 #090B20 #171B4F #252B7E #333BAE

Accessibility & contrast

On white

16.08
#171B4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#171B4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B4F
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B4F#FFFFFF#000000##FFFFFF
##171B4F1.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#001F4E
Tritanopia (blue-blind)
#002832
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #171b4f;
/* rgb */ color: rgb(23, 27, 79);
/* oklch */ color: oklch(25.5% 0.094 274.2);
Tailwind
colors: {
  custom: {
    50: '#5c5781',
    500: '#171b4f',
    950: '#000000',
  },
}
SCSS
$custom: #171b4f;
$custom-light: #5c5781;
$custom-dark: #000000;
JSON
{
  "hex": "#171b4f",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 79
  },
  "hsl": {
    "h": 235.714,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.25522,
    "c": 0.09416,
    "h": 274.2
  },
  "luminance": 0.01531
}

Semantic roles & 50–950 ramp

primary
#171B4F
secondary
#86813C
accent
#D44ADE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #171B4F

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

Preview Lab → · Contrast checker → · Palette generator →

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