#171E51#171E51

#171E51 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.4% C 0.093 H 272.4°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#171E51
RGBrgb(23, 30, 81)
HSLhsl(233, 56%, 20%)
HSVhsv(233, 72%, 32%)
CMYKcmyk(71.6%, 63%, 0%, 68.2%)
CIE-LABlab(13.85, 15.99, -32.26)
CIE-LCHlch(13.85, 36.01, 296.36°)
OKLaboklab(26.36% 0.0039 -0.0928)
OKLCHoklch(26.36% 0.093 272.4)
XYZxyz(2.3023, 1.7046, 7.9907)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E51 #514A17
analogous
#173B51 #171E51 #2D1751
triadic
#171E51 #51171E #1E5117
tetradic
#171E51 #51173B #514A17 #17512D
square
#171E51 #51173B #514A17 #17512D
split-complementary
#171E51 #512D17 #3B5117
monochromatic
#070918 #090C21 #171E51 #253081 #3241B0

Accessibility & contrast

On white

15.66
#171E51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#171E51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E51
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E51#FFFFFF#000000##FFFFFF
##171E511.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002653
Deuteranopia (green-blind)
#002150
Tritanopia (blue-blind)
#002A34
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #171e51;
/* rgb */ color: rgb(23, 30, 81);
/* oklch */ color: oklch(26.4% 0.093 272.4);
Tailwind
colors: {
  custom: {
    50: '#5c5982',
    500: '#171e51',
    950: '#000000',
  },
}
SCSS
$custom: #171e51;
$custom-light: #5c5982;
$custom-dark: #000000;
JSON
{
  "hex": "#171e51",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 81
  },
  "hsl": {
    "h": 232.759,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.2636,
    "c": 0.09292,
    "h": 272.4
  },
  "luminance": 0.01705
}

Semantic roles & 50–950 ramp

primary
#171E51
secondary
#887F3C
accent
#CD49DF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #171E51

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

Preview Lab → · Contrast checker → · Palette generator →

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