#171B54#171B54

#171B54 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.0% C 0.102 H 273.8°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#171B54
RGBrgb(23, 27, 84)
HSLhsl(236, 57%, 21%)
HSVhsv(236, 73%, 33%)
CMYKcmyk(72.6%, 67.9%, 0%, 67.1%)
CIE-LABlab(13.27, 19.41, -35.26)
CIE-LCHlch(13.27, 40.25, 298.83°)
OKLaboklab(26.01% 0.0068 -0.1017)
OKLCHoklch(26.01% 0.102 273.8)
XYZxyz(2.3450, 1.6059, 8.5722)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B54 #545017
analogous
#173954 #171B54 #311754
triadic
#171B54 #54171B #1B5417
tetradic
#171B54 #541739 #545017 #175431
square
#171B54 #541739 #545017 #175431
split-complementary
#171B54 #543117 #395417
monochromatic
#070818 #0A0C24 #171B54 #242A84 #313AB4

Accessibility & contrast

On white

15.89
#171B54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#171B54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B54
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B54#FFFFFF#000000##FFFFFF
##171B541.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#001F53
Tritanopia (blue-blind)
#002934
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #171b54;
/* rgb */ color: rgb(23, 27, 84);
/* oklch */ color: oklch(26.0% 0.102 273.8);
Tailwind
colors: {
  custom: {
    50: '#5d5785',
    500: '#171b54',
    950: '#000000',
  },
}
SCSS
$custom: #171b54;
$custom-light: #5d5785;
$custom-dark: #000000;
JSON
{
  "hex": "#171b54",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 84
  },
  "hsl": {
    "h": 236.066,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26011,
    "c": 0.10191,
    "h": 273.8
  },
  "luminance": 0.01606
}

Semantic roles & 50–950 ramp

primary
#171B54
secondary
#8B863C
accent
#D648E0
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171B54

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

Preview Lab → · Contrast checker → · Palette generator →

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