#171F54#171F54

#171F54 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.9% C 0.096 H 271.8°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#171F54
RGBrgb(23, 31, 84)
HSLhsl(232, 57%, 21%)
HSVhsv(232, 73%, 33%)
CMYKcmyk(72.6%, 63.1%, 0%, 67.1%)
CIE-LABlab(14.41, 16.47, -33.39)
CIE-LCHlch(14.41, 37.24, 296.26°)
OKLaboklab(26.86% 0.003 -0.0961)
OKLCHoklch(26.86% 0.096 271.8)
XYZxyz(2.4430, 1.8020, 8.6049)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F54 #544C17
analogous
#173D54 #171F54 #2D1754
triadic
#171F54 #54171F #1F5417
tetradic
#171F54 #54173D #544C17 #17542D
square
#171F54 #54173D #544C17 #17542D
split-complementary
#171F54 #542D17 #3D5417
monochromatic
#070918 #0A0D24 #171F54 #243184 #3142B4

Accessibility & contrast

On white

15.44
#171F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#171F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F54
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F54#FFFFFF#000000##FFFFFF
##171F541.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002756
Deuteranopia (green-blind)
#002253
Tritanopia (blue-blind)
#002C36
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #171f54;
/* rgb */ color: rgb(23, 31, 84);
/* oklch */ color: oklch(26.9% 0.096 271.8);
Tailwind
colors: {
  custom: {
    50: '#5d5a85',
    500: '#171f54',
    950: '#000000',
  },
}
SCSS
$custom: #171f54;
$custom-light: #5d5a85;
$custom-dark: #000000;
JSON
{
  "hex": "#171f54",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 84
  },
  "hsl": {
    "h": 232.131,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26859,
    "c": 0.0962,
    "h": 271.8
  },
  "luminance": 0.01802
}

Semantic roles & 50–950 ramp

primary
#171F54
secondary
#8B813C
accent
#CC48E0
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171F54

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

Preview Lab → · Contrast checker → · Palette generator →

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