#171D60#171D60

#171D60 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.6% C 0.117 H 272.1°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#171D60
RGBrgb(23, 29, 96)
HSLhsl(235, 61%, 23%)
HSVhsv(235, 76%, 38%)
CMYKcmyk(76%, 69.8%, 0%, 62.4%)
CIE-LABlab(14.98, 22.76, -40.51)
CIE-LCHlch(14.98, 46.47, 299.33°)
OKLaboklab(27.63% 0.0043 -0.1171)
OKLCHoklch(27.63% 0.117 272.1)
XYZxyz(2.9033, 1.9051, 11.2788)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D60 #605A17
analogous
#174160 #171D60 #351760
triadic
#171D60 #60171D #1D6017
tetradic
#171D60 #601741 #605A17 #176035
square
#171D60 #601741 #605A17 #176035
split-complementary
#171D60 #603517 #416017
monochromatic
#060719 #0B0E2F #171D60 #232C91 #2F3BC3

Accessibility & contrast

On white

15.21
#171D60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#171D60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D60
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D60#FFFFFF#000000##FFFFFF
##171D601.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002962
Deuteranopia (green-blind)
#00225F
Tritanopia (blue-blind)
#002F3B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #171d60;
/* rgb */ color: rgb(23, 29, 96);
/* oklch */ color: oklch(27.6% 0.117 272.1);
Tailwind
colors: {
  custom: {
    50: '#60598e',
    500: '#171d60',
    950: '#000000',
  },
}
SCSS
$custom: #171d60;
$custom-light: #60598e;
$custom-dark: #000000;
JSON
{
  "hex": "#171d60",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 96
  },
  "hsl": {
    "h": 235.068,
    "s": 61.345,
    "l": 23.333
  },
  "oklch": {
    "l": 0.27629,
    "c": 0.11714,
    "h": 272.1
  },
  "luminance": 0.01905
}

Semantic roles & 50–950 ramp

primary
#171D60
secondary
#978F3C
accent
#D743E4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #171D60

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

Preview Lab → · Contrast checker → · Palette generator →

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