#171D5E#171D5E

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

Color values

HEX#171D5E
RGBrgb(23, 29, 94)
HSLhsl(235, 61%, 23%)
HSVhsv(235, 76%, 37%)
CMYKcmyk(75.5%, 69.1%, 0%, 63.1%)
CIE-LABlab(14.78, 21.96, -39.51)
CIE-LCHlch(14.78, 45.20, 299.07°)
OKLaboklab(27.42% 0.0044 -0.1141)
OKLCHoklch(27.42% 0.114 272.2)
XYZxyz(2.8124, 1.8688, 10.8000)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D5E #5E5817
analogous
#17405E #171D5E #35175E
triadic
#171D5E #5E171D #1D5E17
tetradic
#171D5E #5E1740 #5E5817 #175E35
square
#171D5E #5E1740 #5E5817 #175E35
split-complementary
#171D5E #5E3517 #405E17
monochromatic
#060819 #0B0E2D #171D5E #232C8F #2F3BC0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##171D5E#FFFFFF#000000##FFFFFF
##171D5E1.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)
#002960
Deuteranopia (green-blind)
#00225D
Tritanopia (blue-blind)
#002E3A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #171d5e;
/* rgb */ color: rgb(23, 29, 94);
/* oklch */ color: oklch(27.4% 0.114 272.2);
Tailwind
colors: {
  custom: {
    50: '#60598c',
    500: '#171d5e',
    950: '#000000',
  },
}
SCSS
$custom: #171d5e;
$custom-light: #60598c;
$custom-dark: #000000;
JSON
{
  "hex": "#171d5e",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 94
  },
  "hsl": {
    "h": 234.93,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27423,
    "c": 0.11421,
    "h": 272.2
  },
  "luminance": 0.01869
}

Semantic roles & 50–950 ramp

primary
#171D5E
secondary
#958D3C
accent
#D644E4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #171D5E

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

Preview Lab → · Contrast checker → · Palette generator →

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