#171F4B#171F4B

#171F4B is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.0% C 0.082 H 271.8°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#171F4B
RGBrgb(23, 31, 75)
HSLhsl(231, 53%, 19%)
HSVhsv(231, 69%, 29%)
CMYKcmyk(69.3%, 58.7%, 0%, 70.6%)
CIE-LABlab(13.65, 12.79, -28.49)
CIE-LCHlch(13.65, 31.22, 294.17°)
OKLaboklab(26.05% 0.0026 -0.0817)
OKLCHoklch(26.05% 0.082 271.8)
XYZxyz(2.1129, 1.6700, 6.8662)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F4B #4B4317
analogous
#17394B #171F4B #29174B
triadic
#171F4B #4B171F #1F4B17
tetradic
#171F4B #4B1739 #4B4317 #174B29
square
#171F4B #4B1739 #4B4317 #174B29
split-complementary
#171F4B #4B2917 #394B17
monochromatic
#070A17 #090C1C #171F4B #25327A #3446A9

Accessibility & contrast

On white

15.74
#171F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#171F4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F4B
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F4B#FFFFFF#000000##FFFFFF
##171F4B1.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04254D
Deuteranopia (green-blind)
#00214A
Tritanopia (blue-blind)
#002931
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #171f4b;
/* rgb */ color: rgb(23, 31, 75);
/* oklch */ color: oklch(26.0% 0.082 271.8);
Tailwind
colors: {
  custom: {
    50: '#5b5a7e',
    500: '#171f4b',
    950: '#000000',
  },
}
SCSS
$custom: #171f4b;
$custom-light: #5b5a7e;
$custom-dark: #000000;
JSON
{
  "hex": "#171f4b",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 75
  },
  "hsl": {
    "h": 230.769,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26048,
    "c": 0.08176,
    "h": 271.8
  },
  "luminance": 0.0167
}

Semantic roles & 50–950 ramp

primary
#171F4B
secondary
#82773C
accent
#C64BDC
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #171F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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