#171877#171877

#171877 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.4% C 0.154 H 271.3°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#171877
RGBrgb(23, 24, 119)
HSLhsl(239, 68%, 28%)
HSVhsv(239, 81%, 47%)
CMYKcmyk(80.7%, 79.8%, 0%, 53.3%)
CIE-LABlab(16.34, 34.65, -53.30)
CIE-LCHlch(16.34, 63.57, 303.02°)
OKLaboklab(29.36% 0.0035 -0.1543)
OKLCHoklch(29.36% 0.154 271.3)
XYZxyz(4.0086, 2.1669, 17.6562)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171877 #777617
analogous
#174877 #171877 #461777
triadic
#171877 #771718 #187717
tetradic
#171877 #771748 #777617 #177746
square
#171877 #771748 #777617 #177746
split-complementary
#171877 #774617 #487717
monochromatic
#05051A #0D0E44 #171877 #2122AA #3133D7

Accessibility & contrast

On white

14.65
#171877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#171877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171877
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171877#FFFFFF#000000##FFFFFF
##1718771.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7A
Deuteranopia (green-blind)
#002475
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #171877;
/* rgb */ color: rgb(23, 24, 119);
/* oklch */ color: oklch(29.4% 0.154 271.3);
Tailwind
colors: {
  custom: {
    50: '#67569f',
    500: '#171877',
    950: '#000000',
  },
}
SCSS
$custom: #171877;
$custom-light: #67569f;
$custom-dark: #000000;
JSON
{
  "hex": "#171877",
  "rgb": {
    "r": 23,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 239.375,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29361,
    "c": 0.15437,
    "h": 271.3
  },
  "luminance": 0.02167
}

Semantic roles & 50–950 ramp

primary
#171877
secondary
#ACAB3E
accent
#E93DEA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #171877

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

Preview Lab → · Contrast checker → · Palette generator →

#171877 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva