#171F56#171F56

#171F56 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.0% C 0.099 H 271.7°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#171F56
RGBrgb(23, 31, 86)
HSLhsl(232, 58%, 21%)
HSVhsv(232, 73%, 34%)
CMYKcmyk(73.3%, 64%, 0%, 66.3%)
CIE-LABlab(14.59, 17.29, -34.46)
CIE-LCHlch(14.59, 38.55, 296.65°)
OKLaboklab(27.05% 0.003 -0.0993)
OKLCHoklch(27.05% 0.099 271.7)
XYZxyz(2.5225, 1.8338, 9.0233)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F56 #564E17
analogous
#173F56 #171F56 #2F1756
triadic
#171F56 #56171F #1F5617
tetradic
#171F56 #56173F #564E17 #17562F
square
#171F56 #56173F #564E17 #17562F
split-complementary
#171F56 #562F17 #3F5617
monochromatic
#060918 #0A0E26 #171F56 #243086 #3142B7

Accessibility & contrast

On white

15.36
#171F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#171F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F56
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F56#FFFFFF#000000##FFFFFF
##171F561.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002858
Deuteranopia (green-blind)
#002255
Tritanopia (blue-blind)
#002D37
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #171f56;
/* rgb */ color: rgb(23, 31, 86);
/* oklch */ color: oklch(27.0% 0.099 271.7);
Tailwind
colors: {
  custom: {
    50: '#5d5a86',
    500: '#171f56',
    950: '#000000',
  },
}
SCSS
$custom: #171f56;
$custom-light: #5d5a86;
$custom-dark: #000000;
JSON
{
  "hex": "#171f56",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 86
  },
  "hsl": {
    "h": 232.381,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27047,
    "c": 0.09933,
    "h": 271.7
  },
  "luminance": 0.01834
}

Semantic roles & 50–950 ramp

primary
#171F56
secondary
#8D833C
accent
#CD47E1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171F56

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

Preview Lab → · Contrast checker → · Palette generator →

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