#171D48#171D48

#171D48 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.3% C 0.080 H 273.3°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#171D48
RGBrgb(23, 29, 72)
HSLhsl(233, 52%, 19%)
HSVhsv(233, 68%, 28%)
CMYKcmyk(68.1%, 59.7%, 0%, 71.8%)
CIE-LABlab(12.79, 13.07, -27.81)
CIE-LCHlch(12.79, 30.72, 295.17°)
OKLaboklab(25.32% 0.0046 -0.0797)
OKLCHoklch(25.32% 0.08 273.3)
XYZxyz(1.9620, 1.5286, 6.3213)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D48 #484217
analogous
#173548 #171D48 #291748
triadic
#171D48 #48171D #1D4817
tetradic
#171D48 #481735 #484217 #174829
square
#171D48 #481735 #484217 #174829
split-complementary
#171D48 #482917 #354817
monochromatic
#070917 #080A1A #171D48 #263076 #3542A5

Accessibility & contrast

On white

16.08
#171D48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#171D48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D48
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D48#FFFFFF#000000##FFFFFF
##171D481.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03234A
Deuteranopia (green-blind)
#001F47
Tritanopia (blue-blind)
#00272F
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #171d48;
/* rgb */ color: rgb(23, 29, 72);
/* oklch */ color: oklch(25.3% 0.080 273.3);
Tailwind
colors: {
  custom: {
    50: '#5a587b',
    500: '#171d48',
    950: '#000000',
  },
}
SCSS
$custom: #171d48;
$custom-light: #5a587b;
$custom-dark: #000000;
JSON
{
  "hex": "#171d48",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 72
  },
  "hsl": {
    "h": 232.653,
    "s": 51.579,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25322,
    "c": 0.07988,
    "h": 273.3
  },
  "luminance": 0.01529
}

Semantic roles & 50–950 ramp

primary
#171D48
secondary
#7F773C
accent
#CA4DDB
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040309
muted
#79787B

Preview Lab

Preview with #171D48

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

Preview Lab → · Contrast checker → · Palette generator →

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