#171A50#171A50

#171A50 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.4% C 0.097 H 274.7°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#171A50
RGBrgb(23, 26, 80)
HSLhsl(237, 55%, 20%)
HSVhsv(237, 71%, 31%)
CMYKcmyk(71.2%, 67.5%, 0%, 68.6%)
CIE-LABlab(12.61, 18.54, -33.61)
CIE-LCHlch(12.61, 38.38, 298.88°)
OKLaboklab(25.41% 0.0079 -0.0968)
OKLCHoklch(25.41% 0.097 274.7)
XYZxyz(2.1702, 1.4999, 7.7630)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A50 #504D17
analogous
#173650 #171A50 #301750
triadic
#171A50 #50171A #1A5017
tetradic
#171A50 #501736 #504D17 #175030
square
#171A50 #501736 #504D17 #175030
split-complementary
#171A50 #503017 #365017
monochromatic
#070818 #090B20 #171A50 #252980 #3239AF

Accessibility & contrast

On white

16.15
#171A50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#171A50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A50
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A50#FFFFFF#000000##FFFFFF
##171A501.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002352
Deuteranopia (green-blind)
#001E4F
Tritanopia (blue-blind)
#002832
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #171a50;
/* rgb */ color: rgb(23, 26, 80);
/* oklch */ color: oklch(25.4% 0.097 274.7);
Tailwind
colors: {
  custom: {
    50: '#5c5682',
    500: '#171a50',
    950: '#000000',
  },
}
SCSS
$custom: #171a50;
$custom-light: #5c5682;
$custom-dark: #000000;
JSON
{
  "hex": "#171a50",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 80
  },
  "hsl": {
    "h": 236.842,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.25409,
    "c": 0.09716,
    "h": 274.7
  },
  "luminance": 0.015
}

Semantic roles & 50–950 ramp

primary
#171A50
secondary
#87833C
accent
#D749DF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #171A50

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

Preview Lab → · Contrast checker → · Palette generator →

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