#171F48#171F48

#171F48 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.8% C 0.077 H 271.7°. Best body text is #FFFFFF at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#171F48
RGBrgb(23, 31, 72)
HSLhsl(230, 52%, 19%)
HSVhsv(230, 68%, 28%)
CMYKcmyk(68.1%, 56.9%, 0%, 71.8%)
CIE-LABlab(13.41, 11.56, -26.80)
CIE-LCHlch(13.41, 29.19, 293.33°)
OKLaboklab(25.79% 0.0023 -0.0768)
OKLCHoklch(25.79% 0.077 271.7)
XYZxyz(2.0126, 1.6298, 6.3382)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F48 #484017
analogous
#173748 #171F48 #271748
triadic
#171F48 #48171F #1F4817
tetradic
#171F48 #481737 #484017 #174827
square
#171F48 #481737 #484017 #174827
split-complementary
#171F48 #482717 #374817
monochromatic
#070A17 #080B1A #171F48 #263376 #3547A5

Accessibility & contrast

On white

15.84
#171F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171F48
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F48#FFFFFF#000000##FFFFFF
##171F481.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082549
Deuteranopia (green-blind)
#012047
Tritanopia (blue-blind)
#002830
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #171f48;
/* rgb */ color: rgb(23, 31, 72);
/* oklch */ color: oklch(25.8% 0.077 271.7);
Tailwind
colors: {
  custom: {
    50: '#5a5a7b',
    500: '#171f48',
    950: '#000000',
  },
}
SCSS
$custom: #171f48;
$custom-light: #5a5a7b;
$custom-dark: #000000;
JSON
{
  "hex": "#171f48",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 72
  },
  "hsl": {
    "h": 230.204,
    "s": 51.579,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25791,
    "c": 0.0768,
    "h": 271.7
  },
  "luminance": 0.0163
}

Semantic roles & 50–950 ramp

primary
#171F48
secondary
#7F743C
accent
#C44DDB
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040309
muted
#79787B

Preview Lab

Preview with #171F48

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

Preview Lab → · Contrast checker → · Palette generator →

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