#171B47#171B47

#171B47 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.8% C 0.081 H 274.9°. Best body text is #FFFFFF at 16.35:1 contrast (WCAG AA passes).

Color values

HEX#171B47
RGBrgb(23, 27, 71)
HSLhsl(235, 51%, 18%)
HSVhsv(235, 68%, 28%)
CMYKcmyk(67.6%, 62%, 0%, 72.2%)
CIE-LABlab(12.10, 14.17, -28.23)
CIE-LCHlch(12.10, 31.59, 296.65°)
OKLaboklab(24.78% 0.0069 -0.081)
OKLCHoklch(24.78% 0.081 274.9)
XYZxyz(1.8822, 1.4208, 6.1351)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B47 #474317
analogous
#173347 #171B47 #2B1747
triadic
#171B47 #47171B #1B4717
tetradic
#171B47 #471733 #474317 #17472B
square
#171B47 #471733 #474317 #17472B
split-complementary
#171B47 #472B17 #334717
monochromatic
#070917 #080919 #171B47 #262D75 #353EA3

Accessibility & contrast

On white

16.35
#171B47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#171B47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B47
16.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B47#FFFFFF#000000##FFFFFF
##171B471.0016.351.2816.35
#FFFFFF16.351.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002249
Deuteranopia (green-blind)
#001E46
Tritanopia (blue-blind)
#00252D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #171b47;
/* rgb */ color: rgb(23, 27, 71);
/* oklch */ color: oklch(24.8% 0.081 274.9);
Tailwind
colors: {
  custom: {
    50: '#5a577b',
    500: '#171b47',
    950: '#000000',
  },
}
SCSS
$custom: #171b47;
$custom-light: #5a577b;
$custom-dark: #000000;
JSON
{
  "hex": "#171b47",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 71
  },
  "hsl": {
    "h": 235,
    "s": 51.064,
    "l": 18.431
  },
  "oklch": {
    "l": 0.24777,
    "c": 0.08132,
    "h": 274.9
  },
  "luminance": 0.01421
}

Semantic roles & 50–950 ramp

primary
#171B47
secondary
#7E793C
accent
#CF4DDB
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040309
muted
#79787B

Preview Lab

Preview with #171B47

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

Preview Lab → · Contrast checker → · Palette generator →

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