#171B48#171B48

#171B48 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.9% C 0.083 H 274.8°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#171B48
RGBrgb(23, 27, 72)
HSLhsl(235, 52%, 19%)
HSVhsv(235, 68%, 28%)
CMYKcmyk(68.1%, 62.5%, 0%, 71.8%)
CIE-LABlab(12.18, 14.58, -28.79)
CIE-LCHlch(12.18, 32.27, 296.85°)
OKLaboklab(24.87% 0.0069 -0.0827)
OKLCHoklch(24.87% 0.083 274.8)
XYZxyz(1.9146, 1.4338, 6.3055)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B48 #484417
analogous
#173348 #171B48 #2B1748
triadic
#171B48 #48171B #1B4817
tetradic
#171B48 #481733 #484417 #17482B
square
#171B48 #481733 #484417 #17482B
split-complementary
#171B48 #482B17 #334817
monochromatic
#070917 #080A1A #171B48 #262C76 #353EA5

Accessibility & contrast

On white

16.32
#171B48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171B48
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B48#FFFFFF#000000##FFFFFF
##171B481.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224A
Deuteranopia (green-blind)
#001E47
Tritanopia (blue-blind)
#00262E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #171b48;
/* rgb */ color: rgb(23, 27, 72);
/* oklch */ color: oklch(24.9% 0.083 274.8);
Tailwind
colors: {
  custom: {
    50: '#5a577b',
    500: '#171b48',
    950: '#000000',
  },
}
SCSS
$custom: #171b48;
$custom-light: #5a577b;
$custom-dark: #000000;
JSON
{
  "hex": "#171b48",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 72
  },
  "hsl": {
    "h": 235.102,
    "s": 51.579,
    "l": 18.627
  },
  "oklch": {
    "l": 0.24867,
    "c": 0.08296,
    "h": 274.8
  },
  "luminance": 0.01434
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #171B48

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

Preview Lab → · Contrast checker → · Palette generator →

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