#171F4A#171F4A

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

Color values

HEX#171F4A
RGBrgb(23, 31, 74)
HSLhsl(231, 53%, 19%)
HSVhsv(231, 69%, 29%)
CMYKcmyk(68.9%, 58.1%, 0%, 71%)
CIE-LABlab(13.57, 12.38, -27.93)
CIE-LCHlch(13.57, 30.55, 293.90°)
OKLaboklab(25.96% 0.0025 -0.0801)
OKLCHoklch(25.96% 0.08 271.8)
XYZxyz(2.0790, 1.6564, 6.6874)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F4A #4A4217
analogous
#17394A #171F4A #29174A
triadic
#171F4A #4A171F #1F4A17
tetradic
#171F4A #4A1739 #4A4217 #174A29
square
#171F4A #4A1739 #4A4217 #174A29
split-complementary
#171F4A #4A2917 #394A17
monochromatic
#070A17 #080B1B #171F4A #263379 #3446A7

Accessibility & contrast

On white

15.77
#171F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171F4A
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F4A#FFFFFF#000000##FFFFFF
##171F4A1.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06254C
Deuteranopia (green-blind)
#002149
Tritanopia (blue-blind)
#002931
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #171f4a;
/* rgb */ color: rgb(23, 31, 74);
/* oklch */ color: oklch(26.0% 0.080 271.8);
Tailwind
colors: {
  custom: {
    50: '#5a5a7d',
    500: '#171f4a',
    950: '#000000',
  },
}
SCSS
$custom: #171f4a;
$custom-light: #5a5a7d;
$custom-dark: #000000;
JSON
{
  "hex": "#171f4a",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 74
  },
  "hsl": {
    "h": 230.588,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25961,
    "c": 0.08012,
    "h": 271.8
  },
  "luminance": 0.01657
}

Semantic roles & 50–950 ramp

primary
#171F4A
secondary
#81763C
accent
#C54CDC
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040309
muted
#79787B

Preview Lab

Preview with #171F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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