#171A42#171A42

#171A42 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.1% C 0.075 H 276.0°. Best body text is #FFFFFF at 16.63:1 contrast (WCAG AA passes).

Color values

HEX#171A42
RGBrgb(23, 26, 66)
HSLhsl(236, 48%, 17%)
HSVhsv(236, 65%, 26%)
CMYKcmyk(65.2%, 60.6%, 0%, 74.1%)
CIE-LABlab(11.37, 12.91, -25.91)
CIE-LCHlch(11.37, 28.95, 296.50°)
OKLaboklab(24.1% 0.0079 -0.0742)
OKLCHoklch(24.1% 0.075 276)
XYZxyz(1.7058, 1.3142, 5.3170)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A42 #423F17
analogous
#173042 #171A42 #2A1742
triadic
#171A42 #42171A #1A4217
tetradic
#171A42 #421730 #423F17 #17422A
square
#171A42 #421730 #423F17 #17422A
split-complementary
#171A42 #422A17 #304217
monochromatic
#080917 #080917 #171A42 #272C6F #373E9D

Accessibility & contrast

On white

16.63
#171A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#171A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A42
16.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A42#FFFFFF#000000##FFFFFF
##171A421.0016.631.2616.63
#FFFFFF16.631.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032043
Deuteranopia (green-blind)
#001C41
Tritanopia (blue-blind)
#01232B
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #171a42;
/* rgb */ color: rgb(23, 26, 66);
/* oklch */ color: oklch(24.1% 0.075 276.0);
Tailwind
colors: {
  custom: {
    50: '#595677',
    500: '#171a42',
    950: '#000000',
  },
}
SCSS
$custom: #171a42;
$custom-light: #595677;
$custom-dark: #000000;
JSON
{
  "hex": "#171a42",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 66
  },
  "hsl": {
    "h": 235.814,
    "s": 48.315,
    "l": 17.451
  },
  "oklch": {
    "l": 0.24105,
    "c": 0.0746,
    "h": 276
  },
  "luminance": 0.01314
}

Semantic roles & 50–950 ramp

primary
#171A42
secondary
#79753C
accent
#CE50D8
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040308
muted
#79787B

Preview Lab

Preview with #171A42

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

Preview Lab → · Contrast checker → · Palette generator →

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