#171F58#171F58

#171F58 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.2% C 0.102 H 271.7°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#171F58
RGBrgb(23, 31, 88)
HSLhsl(233, 59%, 22%)
HSVhsv(233, 74%, 35%)
CMYKcmyk(73.9%, 64.8%, 0%, 65.5%)
CIE-LABlab(14.77, 18.10, -35.51)
CIE-LCHlch(14.77, 39.86, 297.01°)
OKLaboklab(27.24% 0.003 -0.1024)
OKLCHoklch(27.24% 0.102 271.7)
XYZxyz(2.6042, 1.8665, 9.4536)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F58 #585017
analogous
#174058 #171F58 #301758
triadic
#171F58 #58171F #1F5817
tetradic
#171F58 #581740 #585017 #175830
square
#171F58 #581740 #585017 #175830
split-complementary
#171F58 #583017 #405817
monochromatic
#060918 #0A0E27 #171F58 #243089 #3041B9

Accessibility & contrast

On white

15.29
#171F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171F58
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F58#FFFFFF#000000##FFFFFF
##171F581.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285A
Deuteranopia (green-blind)
#002257
Tritanopia (blue-blind)
#002D38
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #171f58;
/* rgb */ color: rgb(23, 31, 88);
/* oklch */ color: oklch(27.2% 0.102 271.7);
Tailwind
colors: {
  custom: {
    50: '#5e5a88',
    500: '#171f58',
    950: '#000000',
  },
}
SCSS
$custom: #171f58;
$custom-light: #5e5a88;
$custom-dark: #000000;
JSON
{
  "hex": "#171f58",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 88
  },
  "hsl": {
    "h": 232.615,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27237,
    "c": 0.10241,
    "h": 271.7
  },
  "luminance": 0.01867
}

Semantic roles & 50–950 ramp

primary
#171F58
secondary
#8F853C
accent
#CF46E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #171F58

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

Preview Lab → · Contrast checker → · Palette generator →

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