#171E48#171E48

#171E48 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.6% C 0.078 H 272.5°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#171E48
RGBrgb(23, 30, 72)
HSLhsl(231, 52%, 19%)
HSVhsv(231, 68%, 28%)
CMYKcmyk(68.1%, 58.3%, 0%, 71.8%)
CIE-LABlab(13.10, 12.31, -27.31)
CIE-LCHlch(13.10, 29.96, 294.27°)
OKLaboklab(25.56% 0.0035 -0.0783)
OKLCHoklch(25.56% 0.078 272.5)
XYZxyz(1.9869, 1.5784, 6.3296)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E48 #484117
analogous
#173648 #171E48 #281748
triadic
#171E48 #48171E #1E4817
tetradic
#171E48 #481736 #484117 #174828
square
#171E48 #481736 #484117 #174828
split-complementary
#171E48 #482817 #364817
monochromatic
#070A17 #080B1A #171E48 #263176 #3545A5

Accessibility & contrast

On white

15.96
#171E48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#171E48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E48
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E48#FFFFFF#000000##FFFFFF
##171E481.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062449
Deuteranopia (green-blind)
#002047
Tritanopia (blue-blind)
#00282F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #171e48;
/* rgb */ color: rgb(23, 30, 72);
/* oklch */ color: oklch(25.6% 0.078 272.5);
Tailwind
colors: {
  custom: {
    50: '#5a597b',
    500: '#171e48',
    950: '#000000',
  },
}
SCSS
$custom: #171e48;
$custom-light: #5a597b;
$custom-dark: #000000;
JSON
{
  "hex": "#171e48",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 72
  },
  "hsl": {
    "h": 231.429,
    "s": 51.579,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25555,
    "c": 0.07834,
    "h": 272.5
  },
  "luminance": 0.01579
}

Semantic roles & 50–950 ramp

primary
#171E48
secondary
#7F753C
accent
#C74DDB
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040309
muted
#79787B

Preview Lab

Preview with #171E48

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

Preview Lab → · Contrast checker → · Palette generator →

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