#171B88#171B88

#171B88 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.173 H 269.7°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#171B88
RGBrgb(23, 27, 136)
HSLhsl(238, 71%, 31%)
HSVhsv(238, 83%, 53%)
CMYKcmyk(83.1%, 80.1%, 0%, 46.7%)
CIE-LABlab(18.98, 38.87, -59.73)
CIE-LCHlch(18.98, 71.26, 303.06°)
OKLaboklab(31.82% -0.0008 -0.173)
OKLCHoklch(31.82% 0.173 269.7)
XYZxyz(5.1877, 2.7430, 23.5438)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B88 #888417
analogous
#175388 #171B88 #4B1788
triadic
#171B88 #88171B #1B8817
tetradic
#171B88 #881753 #888417 #17884B
square
#171B88 #881753 #888417 #17884B
split-complementary
#171B88 #884B17 #538817
monochromatic
#05061F #0E1154 #171B88 #2025BC #3B41DE

Accessibility & contrast

On white

13.56
#171B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#171B88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B88
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B88#FFFFFF#000000##FFFFFF
##171B881.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002886
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #171b88;
/* rgb */ color: rgb(23, 27, 136);
/* oklch */ color: oklch(31.8% 0.173 269.7);
Tailwind
colors: {
  custom: {
    50: '#6c59ac',
    500: '#171b88',
    950: '#000000',
  },
}
SCSS
$custom: #171b88;
$custom-light: #6c59ac;
$custom-dark: #000000;
JSON
{
  "hex": "#171b88",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 136
  },
  "hsl": {
    "h": 237.876,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31819,
    "c": 0.173,
    "h": 269.7
  },
  "luminance": 0.02744
}

Semantic roles & 50–950 ramp

primary
#171B88
secondary
#BCB73F
accent
#E73AEE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #171B88

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

Preview Lab → · Contrast checker → · Palette generator →

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